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.
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
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.
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:
Additional requirements include:
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
MobileHandledExceptionevent type. For more information, see the NRQL examples for mobile monitoring.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's and and documentation.