Error whose message is forwarded verbatim to the caller.

Handlers should throw this for failures the caller is meant to see and act on ("insufficient_funds", "plot_locked"). Any other throw is reported as internal_error, so an unexpected crash cannot leak server internals — stack traces, storage keys, addresses — across the wire.

Hierarchy

  • Error
    • RequestError

Constructors

Properties

Constructors

Properties

message: string
name: string
stack?: string