Skip to main content

ErrorSerialiser

Index

Constructors

constructor

Methods

staticserialise

  • serialise(error: Error): string
  • Parameters

    • error: Error

    Returns string

staticregisterErrorTypes

  • registerErrorTypes(...types: new (...args: any[]) => Error[]): void
  • Parameters

    • rest...types: new (...args: any[]) => Error[]

    Returns void

staticdeserialise

  • deserialise(serialised?: string | JSONObject): Error
  • Parameters

    • optionalserialised: string | JSONObject

    Returns Error

staticdeserialiseFromStackTrace

  • deserialiseFromStackTrace(stack: string): Error
  • Parameters

    • stack: string

    Returns Error