bkc
Version:
:dog: If there are no dogs in Heaven, then when I die I want to go where they went.
25 lines (24 loc) • 819 B
TypeScript
export interface IErrorList {
[key: number]: string;
}
export declare enum ERROR_CODE {
ERROR_THROW_FAILED = 100,
INSTANT_FUNCTION_EXECUTE_FAILED = 101,
INSTANT_EXTERNAL_FUNCTION_EXECUTE_FAILED = 102,
UNDEFINED_VARIABLE = 201,
STATEMENT_END_NOT_MATCHED = 250,
NOT_ENOUGH_ARGUMENT = 255,
ILLEGAL_CALCULATION = 256,
COMMAND_IS_UNDEFINED = 260,
INVALID_EXPRESSION = 270,
STRING_COMBINE_FAILED = 301,
UNEXPECTED_ARGUMENT = 350,
NAMESPACE_UNAVAILABLE = 351,
NAMESPACE_OCCUPIED_INITIAL = 360,
ANY_ERROR_CODE = 800,
FOR_LOOP_IS_NOT_AVAILABLE = 820,
UNKNOWN_ERROR_CODE = 900
}
export declare const errorList: IErrorList;
export declare const errorMessage: (code: number) => string;
export declare const error: (code: number) => Error;