Options
All
  • Public
  • Public/Protected
  • All
Menu

Switchboard wrapper for anchor program errors.

Hierarchy

  • SwitchboardError

Index

Constructors

Properties

Methods

Constructors

Properties

code: number

Numerical SwitchboardError representation.

msg?: string

Message describing this error in detail.

name: string

Stringified name of the error type.

program: Program<Idl>

The program containing the Switchboard IDL specifying error codes.

Methods

  • Converts a numerical error code to a SwitchboardError based on the program IDL.

    Parameters

    • program: Program<Idl>

      the Switchboard program object containing the program IDL.

    • code: number

      Error code to convert to a SwitchboardError object.

    Returns SwitchboardError

    SwitchboardError

Generated using TypeDoc