class AWS::ServiceError < AWS::Error

A service answered with an error: its code (NotFoundException, the service's prefix dropped; match on it), its message, the HTTP status and the request id to give AWS support. The message never holds the request's body or keys.

/home/runner/work/aws/aws/src/errors.qz:11

Class methods

def self.new(*, code: String, message: String, status: Int, request_id: String? = …) -> AWS::ServiceError

An error with the service's code, message, status and request_id.

/home/runner/work/aws/aws/src/errors.qz:18

Methods

def code -> String

The error's code: NotFoundException, AccessDeniedException.

/home/runner/work/aws/aws/src/errors.qz:29

def detail -> String

The service's message alone.

/home/runner/work/aws/aws/src/errors.qz:32

def status -> Int

The HTTP status.

/home/runner/work/aws/aws/src/errors.qz:35

def request_id -> String?

The x-amzn-RequestId of the answer, when there is one.

/home/runner/work/aws/aws/src/errors.qz:38