Wrapper type for all exceptions thrown by rpc clients and operations. This includes rejected promises.

The intention is for this data model to help users make better decisions in the presence of errors. Not all errors are fatal/terminal, but JS doesn't really give a natural way to classify or conditionally react to general errors.

Hierarchy

  • Error
    • RpcError

Properties

description: string

Plain language description of the error

internalError?: CrtError

Optional inner/triggering error that can contain additional context.

serviceError?: any

Optional service-specific modelled error data

The error's broad category

Generated using TypeDoc