in aws-logs-metricfilter/src/main/java/software/amazon/logs/metricfilter/Translator.java [19:36]
public static BaseHandlerException translateException(final AwsServiceException e) {
if (e instanceof LimitExceededException) {
return new CfnServiceLimitExceededException(e);
}
if (e instanceof OperationAbortedException) {
return new CfnResourceConflictException(e);
}
if (e instanceof InvalidParameterException) {
return new CfnInvalidRequestException(e);
}
else if (e instanceof ResourceNotFoundException) {
return new CfnNotFoundException(e);
}
else if (e instanceof ServiceUnavailableException) {
return new CfnServiceInternalErrorException(e);
}
return new CfnGeneralServiceException(e);
}