/** *********************************************************************** * * AUTO GENERATED File do not touch. Edit the template and rerun cg.js * * *********************************************************************** */ /** * Restomax Error Codes * Code 5xxxxx : Pointage Error * Code 8xxxxx : Cloud Function Errors * Code 9xxxxx : Errors ???? * */ export declare enum errorCodes { Success = 0, AuthError = 800777, StaffError = 123456, MissingUser = 800123, cloudFunctionUnknownUrl = 970001, UnknownError = 999999 } /** Loop in Error Code */ export declare function errorCodesValues(): Generator; /** Convert Error Code to Text Message */ export declare function errorCode2Msg(errorCode: errorCodes | string | number): string; /** * */ export declare class rmxError extends Error { /** * Http status code 200,...500,.... */ statusCode: number; /** * Restomax Error Code * TODO Find StatusCode from errCode ex: EmptyQuery===518900 using Restomax_EmptyDataError */ errCode: errorCodes | number; constructor(err: number | string | Partial); }