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]

code[R]

@return [String]

context[R]

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

that triggered the remote service to return this error.

Public Class Methods

new(context, message) click to toggle source

@param [Seahorse::Client::RequestContext] context @param [String] message

Calls superclass method
# File lib/aws-sdk-core/errors.rb, line 16
def initialize(context, message)
  @code = self.class.code
  @context = context
  super(message)
end