Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Warning

Warning is one kind of error, but this can gonna exit the program.

Hierarchy

Implements

Index

Constructors

constructor

  • new Warning(title: string, shift?: undefined | number): Warning

Properties

Protected _called

_called: boolean = false

_warn

_warn: boolean = true

code

code: number = 1

code is the error code if exception is not warning

description

description: string = ""

description why error occurred

message

message: string

name

name: string

Optional stack

stack: undefined | string

Accessors

call

  • get call(): boolean

Methods

clone

equal

  • equal(e: any | undefined): boolean

exit

  • exit(): void

loadError

  • loadError(e: Error): this

loadString

  • loadString(message: string): this

print

  • print(): void

printAndExit

  • printAndExit(): void

reset

  • reset(): void

save

  • save(): void

warn

  • warn(): boolean

Generated using TypeDoc