lib/aws-sdk-lambda/errors.rb in aws-sdk-lambda-1.87.0 vs lib/aws-sdk-lambda/errors.rb in aws-sdk-lambda-1.88.0

- old
+ new

@@ -56,10 +56,13 @@ # * {ResourceConflictException} # * {ResourceInUseException} # * {ResourceNotFoundException} # * {ResourceNotReadyException} # * {ServiceException} + # * {SnapStartException} + # * {SnapStartNotReadyException} + # * {SnapStartTimeoutException} # * {SubnetIPAddressLimitReachedException} # * {TooManyRequestsException} # * {UnsupportedMediaTypeException} # # Additionally, error classes are dynamically generated for service errors based on the error code @@ -676,9 +679,69 @@ class ServiceException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Lambda::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 + + class SnapStartException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Lambda::Types::SnapStartException] 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 SnapStartNotReadyException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Lambda::Types::SnapStartNotReadyException] 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 SnapStartTimeoutException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Lambda::Types::SnapStartTimeoutException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]