Interface ThrowableCauseExtractor


  • public interface ThrowableCauseExtractor
    Interface for handlers extracting the cause out of a specific Throwable type.
    Since:
    2.0
    See Also:
    ThrowableAnalyzer
    • Method Detail

      • extractCause

        java.lang.Throwable extractCause​(java.lang.Throwable throwable)
        Extracts the cause from the provided Throwable.
        Parameters:
        throwable - the Throwable
        Returns:
        the extracted cause (maybe null)
        Throws:
        java.lang.IllegalArgumentException - if throwable is null or otherwise considered invalid for the implementation