Class ErrorPolykeyCLIRecoveryCodeFileRead<T>

Root error for Polykey CLI. Application errors may need to be serialised over program boundaries. For example presenting errors on the terminal, or sending errors over the network.

Type Parameters

  • T

Hierarchy

Constructors

Properties

cause: T

Causation of the exception Can be used to know what caused this exception

data: POJO

Arbitrary data

exitCode: 66 = sysexits.NOINPUT
message: string
name: string
stack?: string
timestamp: Date

Timestamp when exception was constructed in milliseconds Guaranteed to be weakly monotonic

description: string = 'Failed to read recovery code file'
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get description(): string
  • Returns string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Type Parameters

    • T extends Class<any>

    Parameters

    • this: T
    • json: any

    Returns InstanceType<T>

Generated using TypeDoc