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:



784
785
786
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 784

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

Instance Method Details

#messageString

Returns:

  • (String)


799
800
801
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 799

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

#reasonString

Returns:

  • (String)


804
805
806
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 804

def reason
  @data[:reason]
end

#retry_after_secondsString

Returns:

  • (String)


789
790
791
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 789

def retry_after_seconds
  @data[:retry_after_seconds]
end

#typeString

Returns:

  • (String)


794
795
796
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 794

def type
  @data[:type]
end