Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace unstable

Index

Type aliases

BridgeErrorReason

BridgeErrorReason: "m.event_not_handled" | "m.event_too_old" | "m.internal_error" | "m.foreign_network_error" | "m.event_unknown"

Functions

wrap

wrapError

  • Append the old error message to the new one and keep its stack trace. Example: throw wrapError(e, HighLevelError, "This error is more specific");

    Type parameters

    Parameters

    • oldError: Error | string
    • newErrorType: { constructor: any }
      • constructor: function
        • new __type(message: string): T
    • Default value message: string = ""

    Returns EventNotHandledError

Generated using TypeDoc