HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_new/buyercall/node_modules/ow/dist/source/predicates/error.d.ts
import { Predicate, PredicateOptions } from './predicate';
export declare class ErrorPredicate extends Predicate<Error> {
    /**
    @hidden
    */
    constructor(options?: PredicateOptions);
    /**
    Test an error to have a specific name.

    @param expected - Expected name of the Error.
    */
    name(expected: string): this;
    /**
    Test an error to have a specific message.

    @param expected - Expected message of the Error.
    */
    message(expected: string): this;
    /**
    Test the error message to include a specific message.

    @param message - Message that should be included in the error.
    */
    messageIncludes(message: string): this;
    /**
    Test the error object to have specific keys.

    @param keys - One or more keys which should be part of the error object.
    */
    hasKeys(...keys: readonly string[]): this;
    /**
    Test an error to be of a specific instance type.

    @param instance - The expected instance type of the error.
    */
    instanceOf(instance: Function): this;
    /**
    Test an Error to be a TypeError.
    */
    readonly typeError: this;
    /**
    Test an Error to be an EvalError.
    */
    readonly evalError: this;
    /**
    Test an Error to be a RangeError.
    */
    readonly rangeError: this;
    /**
    Test an Error to be a ReferenceError.
    */
    readonly referenceError: this;
    /**
    Test an Error to be a SyntaxError.
    */
    readonly syntaxError: this;
    /**
    Test an Error to be a URIError.
    */
    readonly uriError: this;
}