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:



1183
1184
1185
# File 'lib/aws-sdk-lambda/errors.rb', line 1183

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

Instance Method Details

#messageString

Returns:

  • (String)


1198
1199
1200
# File 'lib/aws-sdk-lambda/errors.rb', line 1198

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

#reasonString

Returns:

  • (String)


1203
1204
1205
# File 'lib/aws-sdk-lambda/errors.rb', line 1203

def reason
  @data[:reason]
end

#retry_after_secondsString

Returns:

  • (String)


1188
1189
1190
# File 'lib/aws-sdk-lambda/errors.rb', line 1188

def retry_after_seconds
  @data[:retry_after_seconds]
end

#typeString

Returns:

  • (String)


1193
1194
1195
# File 'lib/aws-sdk-lambda/errors.rb', line 1193

def type
  @data[:type]
end