-
-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal ExceptionMechanismException type in SentryEvent #1201
Comments
Maybe When doing Either that or simply opening it up and documenting it is what I can think of |
I am in for having a method that returns unwrapped exception. We still need another one that returns the wrapped one for internal processing. The question is naming. What do you think about:
|
changing the return value of
I don't think |
Can we please reconsider this? I'm not sure this is a good public API. We should only be returning the "origin" throwable. The Wrapping throwable was a work around to transport data (mechanism info) into the exception and we can reconsider that or reconsider other things but just throwing another method like this, having a second method to get an exception sounds really dirty IMO. |
My vote is for simply unwrapping on I'm happy to adding this "breaking" change on a minor bump even, since it is really only fixing a bug. |
that's exactly the reason why we've decided at that time to create a new method, we'd need to end up with 2 public methods anyway.
I feel that we are just repeating the same trade-offs btw :) no new arguments to change our decision that has been taken before. |
We should talk this on a call because I don't understand your points. I don't see where in my suggestions we have 3 method? I'd like to keep We need to add something package private that returns the wrapped, mechanism one. So we'd have 1 public method, |
Spring Boot version
2.3.6
. Sentry SDK version3.2.0
.Implemented
BeforeSendCallback
to filter some exceptions from being forwarded to Sentry:The throwable object accessible from
SentryEvent
isExceptionMechanismException
wrapping the underlying exception thrown by the application. TheExceptionMechanismException
is marked as@Internal
though. There does not appear to be a way to access the underlying exception without peeking through internal class.The text was updated successfully, but these errors were encountered: