Aller au contenu principal

AbortError

The AbortError object indicates an error that the operation was aborted.

Hierarchy

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

Index

Constructors

Properties

Methods

Constructors

constructor

  • Error constructor

Properties

staticreadonlyinheritederrorName

errorName: AbortError

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