Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28338] iOS/Android: Parity for exception handling

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.3.1, Release 10.0.0
Fix Version/sn/a
ComponentsAndroid, iOS
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2021-02-07T15:46:16.000+0000
Updated2021-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!

Comments

No comments

JSON Source