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) and a human-readable message.
| Property | Type | Description |
|---|---|---|
errorCode | int | Top-level error code (e.g. 102) |
subCode | int | More specific error code (e.g. 10203) |
level | string | Severity level: Fatal, Error, Warn, Undecided |
msg | string | Human-readable error message |
toString() | string | Full string representation of the error |
| Method | Return Type | Description |
|---|---|---|
getErrorCode() | int | Returns errorCode |
getSubCode() | int | Returns subCode |
getLevel() | String | Returns severity level |
getMsg() | String | Returns error message |
toString() | String | Full stringified error |
| Property | Type | Description |
|---|---|---|
errorCode | NSInteger | Same as above |
subCode | NSInteger | — |
level | NSString* | — |
msg | NSString* | — |
description | NSString* | Equivalent of toString() |
| Level | Meaning | Suggested Action |
|---|---|---|
Fatal | App is likely unusable | Reload or fallback UI |
Error | Recoverable issue | Log or retry |
Warn | Non-blocking warning | Log and continue |
Undecided | Not yet categorized | Handle gracefully, log issue |
LCD tables only load in the browser