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 that happen because of development errors and build time errors.

An error that is an instance of this class indicates there is something wrong with the added implementation or that something is missing on top of what was implemented.

example

Throwing a CompilerError error

throw new CompilerError("This error happens at development time.");



Other links

RuntimeError

since

v0.5.0

Hierarchy

Index

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

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