Skip to content

Better support for exceptions #43

@dcramer

Description

@dcramer

I need to dig into this more, so this ticket is mostly investigate, but the gist is that a formatted traceback might look something like this:

org.springframework.security.authentication.AuthenticationServiceException: Authentication failed 
at com.foobar.core.security.processor.AuthenticationProcessorImpl.authenticate(AuthenticationProcessorImpl.java:88)  

Where in Sentry, we end up with a somewhat-incorrect traceback:

Caused by: org.springframework.security.authentication.AuthenticationServiceException ("Authentication failed") ? at line -1
com.foobar.core.security.processor.AuthenticationProcessorImpl ? in authenticate at line 88

The big things here being:

  1. Caused by should actually be part of the Exception interface
  2. We're not recording a filename (though I'm not sure whats all available there)

There might be some additional things to clean up here as well.

Of note, I'm going to change how Java (and more importantly language-based) tracebacks look so they feel more natural to each individual platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions