read-config-ng
Version:
Multi format configuration loader
26 lines • 789 B
TypeScript
/**
* Custom error class for read-config-ng
*/
export declare class ReadConfigError extends Error {
readonly code: string;
readonly path?: string;
readonly cause?: Error;
constructor(message: string, code?: string, path?: string, cause?: Error);
/**
* Create a file not found error
*/
static fileNotFound(path: string): ReadConfigError;
/**
* Create a parse error
*/
static parseError(path: string, cause: Error): ReadConfigError;
/**
* Create a validation error
*/
static validationError(message: string): ReadConfigError;
/**
* Create a variable resolution error
*/
static resolutionError(variable: string, type: 'env' | 'local'): ReadConfigError;
}
//# sourceMappingURL=read-config-error.d.ts.map