Interface ThrowableCauseExtractor
public interface ThrowableCauseExtractor
Interface for handlers extracting the cause out of a specific
Throwable
type.- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionextractCause
(Throwable throwable) Extracts the cause from the providedThrowable
.
-
Method Details
-
extractCause
Extracts the cause from the providedThrowable
.- Parameters:
throwable
- theThrowable
- Returns:
- the extracted cause (maybe
null
) - Throws:
IllegalArgumentException
- ifthrowable
isnull
or otherwise considered invalid for the implementation
-