Interface ErrorCauseExtractor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extractor of the root cause of a
Throwable
. When instrumenting a library which wraps user
exceptions with a framework exception, generally for propagating checked exceptions across
unchecked boundaries, it is recommended to override this to unwrap back to the user exception.-
Method Summary
Modifier and TypeMethodDescriptionStrips away the wrapper exceptions and returns the actual cause of a request error.static ErrorCauseExtractor
Returns the defaultErrorCauseExtractor
, which unwraps common standard library wrapping exceptions.
-
Method Details
-
extract
Strips away the wrapper exceptions and returns the actual cause of a request error. -
getDefault
Returns the defaultErrorCauseExtractor
, which unwraps common standard library wrapping exceptions.
-