ERROR_CONSTANTS
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/config/constants / ERROR_CONSTANTS
Variable: ERROR_CONSTANTS
constERROR_CONSTANTS: {CODES: {FILE_NOT_FOUND:string;INVALID_INPUT:string;NETWORK_ERROR:string;PARSE_ERROR:string;PERMISSION_DENIED:string;STATE_ERROR:string;UNKNOWN_ERROR:string;VALIDATION_ERROR:string; };MESSAGES: {FILE_NOT_FOUND:string;INVALID_INPUT:string;NETWORK_ERROR:string;PARSE_ERROR:string;PERMISSION_DENIED:string;STATE_ERROR:string;UNKNOWN_ERROR:string;VALIDATION_ERROR:string; }; }
Defined in: utils/config/constants.js:288
Error handling constants
Type Declarationβ
CODESβ
CODES: {
FILE_NOT_FOUND:string;INVALID_INPUT:string;NETWORK_ERROR:string;PARSE_ERROR:string;PERMISSION_DENIED:string;STATE_ERROR:string;UNKNOWN_ERROR:string;VALIDATION_ERROR:string; }
Error codes
CODES.FILE_NOT_FOUNDβ
FILE_NOT_FOUND:
string="FILE_NOT_FOUND"
CODES.INVALID_INPUTβ
INVALID_INPUT:
string="INVALID_INPUT"
CODES.NETWORK_ERRORβ
NETWORK_ERROR:
string="NETWORK_ERROR"
CODES.PARSE_ERRORβ
PARSE_ERROR:
string="PARSE_ERROR"
CODES.PERMISSION_DENIEDβ
PERMISSION_DENIED:
string="PERMISSION_DENIED"
CODES.STATE_ERRORβ
STATE_ERROR:
string="STATE_ERROR"
CODES.UNKNOWN_ERRORβ
UNKNOWN_ERROR:
string="UNKNOWN_ERROR"
CODES.VALIDATION_ERRORβ
VALIDATION_ERROR:
string="VALIDATION_ERROR"
MESSAGESβ
MESSAGES: {
FILE_NOT_FOUND:string;INVALID_INPUT:string;NETWORK_ERROR:string;PARSE_ERROR:string;PERMISSION_DENIED:string;STATE_ERROR:string;UNKNOWN_ERROR:string;VALIDATION_ERROR:string; }
Default error messages
MESSAGES.FILE_NOT_FOUNDβ
FILE_NOT_FOUND:
string="File not found"
MESSAGES.INVALID_INPUTβ
INVALID_INPUT:
string="Invalid input provided"
MESSAGES.NETWORK_ERRORβ
NETWORK_ERROR:
string="Network connection error"
MESSAGES.PARSE_ERRORβ
PARSE_ERROR:
string="Failed to parse file"
MESSAGES.PERMISSION_DENIEDβ
PERMISSION_DENIED:
string="Permission denied"
MESSAGES.STATE_ERRORβ
STATE_ERROR:
string="Application state error"
MESSAGES.UNKNOWN_ERRORβ
UNKNOWN_ERROR:
string="An unknown error occurred"
MESSAGES.VALIDATION_ERRORβ
VALIDATION_ERROR:
string="Input validation failed"