public static boolean matchKnowError(EConnectionErrorCode errorCode, String errorMsg) {
        return Arrays.stream(errorCode.baseErrorInfo)
                .filter(baseInfo -> StringUtils.containsIgnoreCase(errorMsg, baseInfo))
                .findAny()
                .isPresent();
    }
Date: 2020/4/2
Company: www.dtstack.com
@author maqi
core/src/main/java/com/dtstack/flink/sql/enums/EConnectionErrorCode.java