Interface ErrorCauseExtractor
-
public interface ErrorCauseExtractorExtractor of the root cause of aThrowable. 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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ThrowableextractCause(Throwable error)static ErrorCauseExtractorjdk()Returns aErrorCauseExtractorwhich unwraps common standard library wrapping exceptions.
-
-
-
Method Detail
-
jdk
static ErrorCauseExtractor jdk()
Returns aErrorCauseExtractorwhich unwraps common standard library wrapping exceptions.
-
-