aws-sagemaker-modelbiasjobdefinition/src/main/java/software/amazon/sagemaker/modelbiasjobdefinition/Translator.java [29:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void throwCfnException(final String operation, final AwsServiceException e) {
        if(e.awsErrorDetails() != null && StringUtils.isNotBlank(e.awsErrorDetails().errorCode())) {
            switch (e.awsErrorDetails().errorCode()) {
                case "UnauthorizedOperation":
                    throw new CfnAccessDeniedException(operation, e);
                case "InvalidParameter":
                case "InvalidParameterValue":
                case "ValidationError":
                    throw new CfnInvalidRequestException(operation, e);
                case "InternalError":
                case "ServiceUnavailable":
                    throw new CfnServiceInternalErrorException(operation, e);
                case "ResourceLimitExceeded":
                    throw new CfnServiceLimitExceededException(e);
                case "ResourceNotFound":
                    throw new CfnNotFoundException(e);
                case "ThrottlingException":
                    throw new CfnThrottlingException(operation, e);
                default:
                    throw new CfnGeneralServiceException(operation, e);
            }
        }

        throw new CfnGeneralServiceException(operation, e);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-sagemaker-dataqualityjobdefinition/src/main/java/software/amazon/sagemaker/dataqualityjobdefinition/Translator.java [29:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void throwCfnException(final String operation, final AwsServiceException e) {
        if(e.awsErrorDetails() != null && StringUtils.isNotBlank(e.awsErrorDetails().errorCode())) {
            switch (e.awsErrorDetails().errorCode()) {
                case "UnauthorizedOperation":
                    throw new CfnAccessDeniedException(operation, e);
                case "InvalidParameter":
                case "InvalidParameterValue":
                case "ValidationError":
                    throw new CfnInvalidRequestException(operation, e);
                case "InternalError":
                case "ServiceUnavailable":
                    throw new CfnServiceInternalErrorException(operation, e);
                case "ResourceLimitExceeded":
                    throw new CfnServiceLimitExceededException(e);
                case "ResourceNotFound":
                    throw new CfnNotFoundException(e);
                case "ThrottlingException":
                    throw new CfnThrottlingException(operation, e);
                default:
                    throw new CfnGeneralServiceException(operation, e);
            }
        }

        throw new CfnGeneralServiceException(operation, e);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-sagemaker-monitoringschedule/src/main/java/software/amazon/sagemaker/monitoringschedule/Translator.java [29:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    static void throwCfnException(final String operation, final AwsServiceException e) {
        if(e.awsErrorDetails() != null && StringUtils.isNotBlank(e.awsErrorDetails().errorCode())) {
            switch (e.awsErrorDetails().errorCode()) {
                case "UnauthorizedOperation":
                    throw new CfnAccessDeniedException(operation, e);
                case "InvalidParameter":
                case "InvalidParameterValue":
                case "ValidationError":
                    throw new CfnInvalidRequestException(operation, e);
                case "InternalError":
                case "ServiceUnavailable":
                    throw new CfnServiceInternalErrorException(operation, e);
                case "ResourceLimitExceeded":
                    throw new CfnServiceLimitExceededException(e);
                case "ResourceNotFound":
                    throw new CfnNotFoundException(e);
                case "ThrottlingException":
                    throw new CfnThrottlingException(operation, e);
                default:
                    throw new CfnGeneralServiceException(operation, e);
            }
        }

        throw new CfnGeneralServiceException(operation, e);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-sagemaker-modelexplainabilityjobdefinition/src/main/java/software/amazon/sagemaker/modelexplainabilityjobdefinition/Translator.java [29:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void throwCfnException(final String operation, final AwsServiceException e) {
        if(e.awsErrorDetails() != null && StringUtils.isNotBlank(e.awsErrorDetails().errorCode())) {
            switch (e.awsErrorDetails().errorCode()) {
                case "UnauthorizedOperation":
                    throw new CfnAccessDeniedException(operation, e);
                case "InvalidParameter":
                case "InvalidParameterValue":
                case "ValidationError":
                    throw new CfnInvalidRequestException(operation, e);
                case "InternalError":
                case "ServiceUnavailable":
                    throw new CfnServiceInternalErrorException(operation, e);
                case "ResourceLimitExceeded":
                    throw new CfnServiceLimitExceededException(e);
                case "ResourceNotFound":
                    throw new CfnNotFoundException(e);
                case "ThrottlingException":
                    throw new CfnThrottlingException(operation, e);
                default:
                    throw new CfnGeneralServiceException(operation, e);
            }
        }

        throw new CfnGeneralServiceException(operation, e);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-sagemaker-modelqualityjobdefinition/src/main/java/software/amazon/sagemaker/modelqualityjobdefinition/Translator.java [29:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void throwCfnException(final String operation, final AwsServiceException e) {
        if(e.awsErrorDetails() != null && StringUtils.isNotBlank(e.awsErrorDetails().errorCode())) {
            switch (e.awsErrorDetails().errorCode()) {
                case "UnauthorizedOperation":
                    throw new CfnAccessDeniedException(operation, e);
                case "InvalidParameter":
                case "InvalidParameterValue":
                case "ValidationError":
                    throw new CfnInvalidRequestException(operation, e);
                case "InternalError":
                case "ServiceUnavailable":
                    throw new CfnServiceInternalErrorException(operation, e);
                case "ResourceLimitExceeded":
                    throw new CfnServiceLimitExceededException(e);
                case "ResourceNotFound":
                    throw new CfnNotFoundException(e);
                case "ThrottlingException":
                    throw new CfnThrottlingException(operation, e);
                default:
                    throw new CfnGeneralServiceException(operation, e);
            }
        }

        throw new CfnGeneralServiceException(operation, e);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



