Aller au contenu principal

CodecError

Codec Error constructor

Hierarchy

  • Readonly<Error & { cause: unknown; message: string; name: CodecError; stack: string } & { name: CodecError } & { input: unknown }>
    • CodecError

Index

Constructors

constructor

  • Error constructor

Properties

readonlyinheritedinput

input: unknown

Input given for encoding/decoding

staticreadonlyinheritederrorName

errorName: CodecError

Error name

Methods

staticinheritedasString

  • asString(self): string
  • Static method to convert an error to a string

    @example
    CustomError.asString(new Error('my message'));

staticinheritedhasInstance

  • hasInstance<Class>(this, anyValue): anyValue is InstanceType<Class>
  • Return true if anyValue is an instance of current class