@Override
        public boolean matches(AmazonServiceException e) {
            return "ValidationException".equals(e.getErrorCode());
        }
Takes the response exception and determines whether this exception matches the expected exception, by
comparing the respective error codes.

@param e
       Response Exception
@return True if it matches, False otherwise
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/ImageVersionCreated.java