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

Inherits:
ServiceError
  • Object
show all
Defined in:
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:



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

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

Instance Method Details

#messageString

Returns:

  • (String)


820
821
822
# File 'lib/aws-sdk-lambda/errors.rb', line 820

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

#reasonString

Returns:

  • (String)


825
826
827
# File 'lib/aws-sdk-lambda/errors.rb', line 825

def reason
  @data[:reason]
end

#retry_after_secondsString

Returns:

  • (String)


810
811
812
# File 'lib/aws-sdk-lambda/errors.rb', line 810

def retry_after_seconds
  @data[:retry_after_seconds]
end

#typeString

Returns:

  • (String)


815
816
817
# File 'lib/aws-sdk-lambda/errors.rb', line 815

def type
  @data[:type]
end