@breautek/storm
Version:
Object-Oriented REST API framework
19 lines (18 loc) • 657 B
TypeScript
import { StormError } from './StormError';
import { ErrorCode } from './ErrorCode';
import { StatusCode } from './StatusCode';
import { IConfig } from './IConfig';
import { ErrorObject } from 'ajv';
import { ExitCode } from './ExitCode';
interface IInvalidConfigErrorDetails<TConfig extends IConfig> {
config: TConfig;
errors: ErrorObject[];
}
export declare class InvalidConfigError<TConfig extends IConfig> extends StormError<IInvalidConfigErrorDetails<TConfig>> {
constructor(config: TConfig, errors: ErrorObject[]);
getMessage(): string;
getCode(): ErrorCode;
getHTTPCode(): StatusCode;
getExitCode(): ExitCode;
}
export {};