Aller au contenu principal

NotImplementedError

NotImplementedError constructor

@example
function someFunction() {
throw NotImplementedError();// message can be customized
}

Hierarchy

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

Index

Constructors

Properties

Methods

Constructors

constructor

  • Error constructor

Properties

staticreadonlyerrorName

errorName: NotImplementedError

Error name

Methods

staticasString

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

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

statichasInstance

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


    Type parameters

    • Class: new (...args: any) => any