Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouterError

An error thrown when the Router is unable to route an event.

Hierarchy

  • Error
    • RouterError

Index

Constructors

  • new RouterError(__namedParameters: { code: "ROUTE_NOT_FOUND"; message: string }): RouterError
  • Parameters

    • __namedParameters: { code: "ROUTE_NOT_FOUND"; message: string }
      • code: "ROUTE_NOT_FOUND"
      • message: string

    Returns RouterError

Properties

code: "ROUTE_NOT_FOUND"
isRouterError: boolean = true
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc