[TIMOB-28338] iOS/Android: Parity for exception handling
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 9.3.1, Release 10.0.0 |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2021-02-07T15:46:16.000+0000 |
Updated | 2021-02-07T15:46:44.000+0000 |
Description
The exception handling in Titanium seems a bit odd:
- The "uncaughtException" event provides many keys, but some are iOS only, some Android only, some are named differently (e.g. "javaStack" vs "nativeStack or "lineOffset" vs "column").
- There is no way to retrieve the native exception (NSException on iOS, Throwable/Exception on Android). If we'd have a proxy like "TiException" that boxes these native values, we could parse it our own or provide it to our crash reporting
- On iOS, the "uncaughtException" event is fired 4 (!) times for each uncaught exception, making it unusable in production
It would be great if someone could jump on this and clean it up. Happy to help with feedback and test cases!
No comments