Interface ThrowableCauseExtractor
-
public interface ThrowableCauseExtractor
Interface for handlers extracting the cause out of a specificThrowable
type.- Since:
- 2.0
- See Also:
ThrowableAnalyzer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Throwable
extractCause(java.lang.Throwable throwable)
Extracts the cause from the providedThrowable
.
-
-
-
Method Detail
-
extractCause
java.lang.Throwable extractCause(java.lang.Throwable throwable)
Extracts the cause from the providedThrowable
.- Parameters:
throwable
- theThrowable
- Returns:
- the extracted cause (maybe
null
) - Throws:
java.lang.IllegalArgumentException
- ifthrowable
isnull
or otherwise considered invalid for the implementation
-
-