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:



658
659
660
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 658

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

Instance Method Details

#messageString

Returns:

  • (String)


673
674
675
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 673

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

#reasonString

Returns:

  • (String)


678
679
680
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 678

def reason
  @data[:reason]
end

#retry_after_secondsString

Returns:

  • (String)


663
664
665
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 663

def retry_after_seconds
  @data[:retry_after_seconds]
end

#typeString

Returns:

  • (String)


668
669
670
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/errors.rb', line 668

def type
  @data[:type]
end