Class: Aws::AgentDiscovery::Errors::ThrottlingException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ThrottlingException.

Parameters:



65
66
67
# File 'gems/aws-sdk-agentdiscovery/lib/aws-sdk-agentdiscovery/errors.rb', line 65

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

Instance Method Details

#error_code ⇒ String

Returns:

  • (String)


75
76
77
# File 'gems/aws-sdk-agentdiscovery/lib/aws-sdk-agentdiscovery/errors.rb', line 75

def error_code
  @data[:error_code]
end

#message ⇒ String

Returns:

  • (String)


70
71
72
# File 'gems/aws-sdk-agentdiscovery/lib/aws-sdk-agentdiscovery/errors.rb', line 70

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

#retryable? ⇒ Boolean

Returns:

  • (Boolean)


79
80
81
# File 'gems/aws-sdk-agentdiscovery/lib/aws-sdk-agentdiscovery/errors.rb', line 79

def retryable?
  true
end

#throttling? ⇒ Boolean

Returns:

  • (Boolean)


83
84
85
# File 'gems/aws-sdk-agentdiscovery/lib/aws-sdk-agentdiscovery/errors.rb', line 83

def throttling?
  true
end