Class RightAws::AwsError
In: lib/awsbase/right_awsbase.rb
Parent: RuntimeError

Exception class to signal any Amazon errors. All errors occuring during calls to Amazon‘s web services raise this type of error. Attribute inherited by RuntimeError:

 message    - the text of the error, generally as returned by AWS in its XML response.

Methods

Attributes

errors  [R]  either an array of errors where each item is itself an array of [code, message]), or an error string if the error was raised manually, as in AwsError.new(‘err_text’)
http_code  [R]  Response HTTP error code
request_id  [R]  Request id (if exists)

Public Class methods

Generic handler for AwsErrors. aws is the RightAws::S3, RightAws::EC2, or RightAws::SQS object that caused the exception (it must provide last_request and last_response). Supported boolean options are:

  • :log print a message into the log using aws.logger to access the Logger
  • :puts do a "puts" of the error
  • :raise re-raise the error after logging

True if e is an AWS system error, i.e. something that is for sure not the caller‘s fault. Used to force logging.

Public Instance methods

Does any of the error messages include the regexp pattern? Used to determine whether to retry request.

[Validate]