Skip to content

Conversation

@marcomorain
Copy link
Collaborator

@marcomorain marcomorain commented Sep 16, 2016

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");
}

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

Use case:

try {
  // network operation to load cats
} catch (HttpException e) {
  Sentry.captureException(e, "Error loading cats");
}
static final String isInternalPackage = "^(java|android|com\\.android|com\\.google\\.android|dalvik\\.system)\\..*";

private final static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
private final static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~ this fixes a warning in AndroidStudio

@marcomorain marcomorain merged commit a99f44e into joshdholtz:master Sep 23, 2016
@marcomorain marcomorain deleted the feature-allow-message branch September 23, 2016 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants