Intercept Exception messages for sanitization #665
Unanswered
vincent-simpson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! My use case is to handle some code to remove the new line characters, such as:
I've discovered that I can extend the
ExtendedThrowableProxyConverter
class and overridethrowableProxyToString
, but theIThrowableProxy
argument is immutable, so I can't modify it. Ideally, I'd like to avoid having to callsuper.throwableProxyToString
and then parse the response since that will contain the full stack trace, not just the exception message.My current code:
Logback config:
Any thoughts? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions