Class XExceptionUtils


  • public final class XExceptionUtils
    extends Object
    Utility functions for Exceptions and Throwables, in addition to those already provided by ExceptionUtils.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getAllFormattedCausesAndSuppressed

        public static String getAllFormattedCausesAndSuppressed​(Throwable error)
        For a given throwable, returns a string with the message of the throwable and the messages from all causes and suppressed throwables of that throwable. Produces output similar to Throwable.printStackTrace(), but with only the exception messages and without the call stack entries.
        Parameters:
        error - Throwable to process.
        Returns:
        The messages of the error and all its causes and suppressions.