Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Throwable

This is the throwable interface, which use to contain more helper method than Error interface

author

Kamontat Chantrachirathumrong

version

1.0.0

since

Obtober 22, 2018

Hierarchy

  • Error
    • Throwable

Implemented by

Index

Properties

Error

Error: ErrorConstructor

message

message: string

name

name: string

Optional stack

stack: undefined | string

Methods

clone

equal

  • equal(e: any | undefined): boolean
  • This will check is input error is same as current throwable

    Parameters

    • e: any | undefined

      another object

    Returns boolean

exit

  • exit(): void
  • This will exit the process (using {@link process.exit(code)}), if and only if the error isn't warning exception

    Returns void

loadError

loadString

print

  • print(): void

printAndExit

  • printAndExit(): void

warn

  • warn(): boolean

Generated using TypeDoc