LynxError is the standard error object returned by the Lynx runtime to indicate runtime failures, warnings, or recoverable issues in your app.
It contains both machine-readable information (error code, subcode, severity level) and a human-readable message to help with debugging and recovery.
A 3–4 digit number identifying the category or behavior of an error.
For example, 301 represents an image loading error.
Refer to the Error Codes documentation for a full list of codes and their meanings.
A 5–6 digit number derived from the error code, used to specify the exact cause of the error.
For example, 30101 indicates that the loaded image is too large.
Refer to the Error Codes documentation for details on individual subcodes.
LynxError defines four levels: Fatal, Error, Warn, and Undecided.
| Level | Meaning | Suggested Action |
|---|---|---|
Fatal | App is likely unusable | Reload or fallback UI |
Error | Recoverable issue | Log and retry |
Warn | Non-blocking warning | Log and continue |
Undecided | Not yet categorized | Handle gracefully, log issue |
A JSON-formatted string containing detailed error information, including:
codesubcodelevelmessagesuggestion (optional)| Method | Return Type | Description |
|---|---|---|
getErrorCode() | int | Returns the error code |
getSubCode() | int | Returns the subcode |
getLevel() | String | Returns the level |
getMsg() | String | Returns the message |
| Property / Method | Type | Description |
|---|---|---|
errorCode | NSInteger | Returns the error code |
subcode | NSInteger | Returns the subcode |
level | NSString* | Returns the level |
userInfo() | NSDictionary* | Returns a dictionary where the message can be queried using the key LynxErrorUserInfoKeyMessage |
| Method | Type | Description |
|---|---|---|
getErrorCode() | number | Returns the error code |
getSubCode() | number | Returns the subcode |
getLevel() | LynxErrorLevel | Returns the level |
getMsg() | string | Returns the message |
LCD tables only load in the browser