Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
923 B
Plaintext
28 lines
923 B
Plaintext
export declare enum ErrorCode {
|
|
MISSING_VALUE = "MISSING_VALUE",
|
|
INVALID_VALUE = "INVALID_VALUE",
|
|
MISSING_INTL_API = "MISSING_INTL_API"
|
|
}
|
|
export declare class FormatError extends Error {
|
|
readonly code: ErrorCode;
|
|
/**
|
|
* Original message we're trying to format
|
|
* `undefined` if we're only dealing w/ AST
|
|
*
|
|
* @type {(string | undefined)}
|
|
* @memberof FormatError
|
|
*/
|
|
readonly originalMessage: string | undefined;
|
|
constructor(msg: string, code: ErrorCode, originalMessage?: string);
|
|
toString(): string;
|
|
}
|
|
export declare class InvalidValueError extends FormatError {
|
|
constructor(variableId: string, value: any, options: string[], originalMessage?: string);
|
|
}
|
|
export declare class InvalidValueTypeError extends FormatError {
|
|
constructor(value: any, type: string, originalMessage?: string);
|
|
}
|
|
export declare class MissingValueError extends FormatError {
|
|
constructor(variableId: string, originalMessage?: string);
|
|
}
|