1 | /**
|
2 | * Protocol for handling options-related issues.
|
3 | */
|
4 | import { IOptionsErrorContext, NamedValues, OptionsError } from './types';
|
5 | export interface IOptionsErrorHandler {
|
6 | /**
|
7 | * This method is normally expected to throw an error, based on "err"
|
8 | */
|
9 | handle(err: OptionsError, ctx: IOptionsErrorContext): NamedValues;
|
10 | }
|
11 | /**
|
12 | * Default handler for options-related issues.
|
13 | */
|
14 | export declare class DefaultErrorHandler implements IOptionsErrorHandler {
|
15 | handle(err: OptionsError, ctx: IOptionsErrorContext): NamedValues;
|
16 | }
|