Type that is implemented by all Smithy shapes marked with the error trait.

Deprecated

interface SmithyException {
    $fault: "client" | "server";
    $response?: HttpResponse;
    $retryable?: RetryableTrait;
    $service?: string;
    name: string;
}

Properties

$fault: "client" | "server"

Whether the client or server are at fault.

$response?: HttpResponse

Reference to low-level HTTP response object.

$retryable?: RetryableTrait

Indicates that an error MAY be retried by the client.

$service?: string

The service that encountered the exception.

name: string

The shape ID name of the exception.