Class ValueNotFoundError<T, V>

Thrown in search functions when a specific value couldn't be found on enumerator.

Type Parameters

  • T

  • V

Hierarchy

  • Error
    • ValueNotFoundError

Constructors

  • Type Parameters

    • T

    • V

    Parameters

    • value: V
    • enumerator: Enumerator<T, any>

    Returns ValueNotFoundError<T, V>

Properties

enumerator: Enumerator<T, any>
message: string
name: string
stack?: string
value: V
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc