Exceptions can contribute to invalid application states, resulting not only in application crashes but also in negative user reviews. This may lead to users deleting your app, which in turn may affect your organization's profitability. With the Handled exceptions UI, mobile development managers and their developer teams can identify significant factors affecting poor mobile app experience, and use filterable data to find a resolution more quickly.
Features
Handling exceptions as they occur can help improve your mobile app users' experience, but it's not enough to catch exceptions. You also need to know how to prevent them. For example:
- How many different types of handled exceptions are occurring? A high occurrence rate may necessitate changes to the back-end systems.
- Why does the user's app usage result in a try/catch? What is the context for the exceptions?
- When can a test environment's responses to handled exceptions indicate additional, more serious problems?
- What would have caused a crash if the exception had not been caught in production? What else (in the code or back-end API) is still affecting the users' experience?
By using handled exceptions, you can identify and resolve these kinds of issues more quickly.
one.newrelic.com > Mobile > (select an app) > Exceptions > Handled exceptions: As you explore the wealth of data in the charts and table, use groups and filters to discover patterns that help you determine the root cause of mobile app exceptions.
Handled exception features | Comments |
---|---|
Slice and dice your exception data. | You can view exception data via API as well as the UI:
|
Understand a particular user's experience. | Examine the percentage charts to see overall trends with users and sessions at a glance. Then, use custom attributes to focus on exceptions related to paid accounts than free accounts. |
Pinpoint when most exceptions occur. | For example, group on
|
Align issues with common characteristics. | For example:
|
Explore the event trail before and after a crash. | With mobile monitoring you get a more complete picture of events before and after crashes occur, so you can analyze and resolve problems from multiple angles:
|
Requirements
Tip
Access to this feature depends on your subscription level and mobile data retention.
Additional requirements include:
Handled exceptions API and event type
Mobile monitoring automatically includes default attributes that you can use to explore your handled exceptions data in the query builder and get specific details:
- Use the
recordHandledExceptions()
method for the Android or iOS SDK API. - Query the
MobileHandledException
event type. For more information, see the NRQL examples for mobile monitoring.
You can also create your own custom attributes and events. Then, select attributes in the Handled exceptions page, and query or share them.