Class: Aws::CodeGuruSecurity::Errors::ThrottlingException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ThrottlingException.

Parameters:



162
163
164
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 162

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

Instance Method Details

#error_codeString

Returns:

  • (String)


167
168
169
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 167

def error_code
  @data[:error_code]
end

#messageString

Returns:

  • (String)


172
173
174
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 172

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

#quota_codeString

Returns:

  • (String)


177
178
179
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 177

def quota_code
  @data[:quota_code]
end

#retryable?Boolean

Returns:

  • (Boolean)


186
187
188
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 186

def retryable?
  true
end

#service_codeString

Returns:

  • (String)


182
183
184
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 182

def service_code
  @data[:service_code]
end

#throttling?Boolean

Returns:

  • (Boolean)


190
191
192
# File 'lib/aws-sdk-codegurusecurity/errors.rb', line 190

def throttling?
  true
end