Options
All
  • Public
  • Public/Protected
  • All
Menu
label

ERRORS

description

This class is used for more transparent error handling and as a base for other error classes. Note that this class was added for future upgradeability in handling errors.

example

Throwing a RuntimeError error

throw new RuntimeError("This error happens at runtime.");



Other links

{@link InvalidConfigurationError}

since

v0.3.0

Hierarchy

Index

Constructors

  • Parameters

    • Optional message: string

    Returns RuntimeError

Properties

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