joshdholtz / Sentry-Android

[Deprecated] Use official "raven-java" library
https://github.com/getsentry/sentry-java
MIT License
180 stars 48 forks source link

Allow the user to specify a message with exceptions #77

Closed marcomorain closed 8 years ago

marcomorain commented 8 years ago

It is often useful to add a string of context along with an exception. This helps show the user what was happening when the exception occurred.

Use case:

try {
  // network operation to load cats
} catch (HttpException e) {
  Sentry.captureException(e, "Error loading cats");
}