class Aws::Errors::ServiceError

The base class for all errors returned by an Amazon Web Service. All ~400 level client errors and ~500 level server errors are raised as service errors. This indicates it was an error returned from the service and not one generated by the client.

Attributes

code[RW]

@return [String, nil]

code[R]

@return [String]

context[R]

@return [Seahorse::Client::RequestContext] The context of the request

that triggered the remote service to return this error.
data[RW]

@return [Aws::Structure]

Public Class Methods

new(context, message, data = Aws::EmptyStructure.new) click to toggle source

@param [Seahorse::Client::RequestContext] context @param [String, nil] message @param [Aws::Structure] data

Calls superclass method
# File lib/aws-sdk-core/errors.rb, line 17
def initialize(context, message, data = Aws::EmptyStructure.new)
  @code = self.class.code
  @context = context
  @data = data
  @message = message && !message.empty? ? message : self.class.to_s
  super(@message)
end

Public Instance Methods

retryable?() click to toggle source

@api private undocumented

# File lib/aws-sdk-core/errors.rb, line 43
def retryable?
  false
end
throttling?() click to toggle source

@api private undocumented

# File lib/aws-sdk-core/errors.rb, line 48
def throttling?
  false
end