lib/aws-sdk-lambdapreview/errors.rb in aws-sdk-lambdapreview-1.11.0 vs lib/aws-sdk-lambdapreview/errors.rb in aws-sdk-lambdapreview-1.12.0
- old
+ new
@@ -8,7 +8,91 @@
module Aws::LambdaPreview
module Errors
extend Aws::Errors::DynamicErrors
+ class InvalidParameterValueException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::LambdaPreview::Types::InvalidParameterValueException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def type
+ @data[:type]
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+
+ end
+
+ class InvalidRequestContentException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::LambdaPreview::Types::InvalidRequestContentException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def type
+ @data[:type]
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+
+ end
+
+ class ResourceNotFoundException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::LambdaPreview::Types::ResourceNotFoundException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def type
+ @data[:type]
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+
+ end
+
+ class ServiceException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::LambdaPreview::Types::ServiceException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def type
+ @data[:type]
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+
+ end
+
end
end