15815213711
2024-08-26 67b8b6731811983447e053d4396b3708c14dfe3c
1
2
3
4
5
6
7
8
9
10
import ErrorOptions from './error_options';
declare class BaseError<T extends ErrorOptions> extends Error {
    [key: string]: any;
    static getType(err: Error): string;
    static from<S extends new (...args: any) => InstanceType<typeof BaseError>, P extends ConstructorParameters<S>>(this: S, err: Error, ...args: P | undefined[]): InstanceType<S>;
    code: string;
    protected options?: T;
    constructor(options?: T);
}
export default BaseError;