Skip to main content

externalUnknownError

Thrown to indicate that an unknown error has occurred.

Hierarchy

Index

Constructors

externalconstructor

  • new UnknownError(message: string, cause?: Error): UnknownError
  • Parameters

    • externalmessage: string

      Human-readable description of the error

    • externaloptionalcause: Error

      The root cause of this RuntimeError, if any

    Returns UnknownError

Properties

publicexternaloptionalreadonlycause

cause?: Error

The root cause of this RuntimeError, if any

externalname

name: string

externalmessage

message: string

externaloptionalstack

stack?: string

Methods

staticexternalfromJSON

  • Parameters

    • externalserialised: JSONObject

    Returns UnknownError

externaltoString

  • toString(): string
  • Human-readable description of the error


    Returns string

externaltoJSON

  • toJSON(): object
  • Returns object