Class: Aws::Lambda::Errors::TooManyRequestsException

Inherits:
ServiceError
  • Object
show all
Defined in:
gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ TooManyRequestsException

Returns a new instance of TooManyRequestsException.

Parameters:



721
722
723
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 721

def initialize(context, message, data = Aws::EmptyStructure.new)
  super(context, message, data)
end

Instance Method Details

#messageString

Returns:

  • (String)


736
737
738
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 736

def message
  @message || @data[:message]
end

#reasonString

Returns:

  • (String)


741
742
743
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 741

def reason
  @data[:reason]
end

#retry_after_secondsString

Returns:

  • (String)


726
727
728
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 726

def retry_after_seconds
  @data[:retry_after_seconds]
end

#typeString

Returns:

  • (String)


731
732
733
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 731

def type
  @data[:type]
end