Class ExceptionUtil


  • public abstract class ExceptionUtil
    extends Object
    Author:
    Philipp Meinen
    • Constructor Detail

      • ExceptionUtil

        protected ExceptionUtil()
    • Method Detail

      • buildMessageChain

        public static String buildMessageChain​(Throwable t)
        Returns a one-line representation of an exception. The goal of this method is to provide messages which are log-friendly. The format of these messages looks like:
         className.method:line#exceptionClassName(message) => causingClassName.method:line#exceptionClassName(message) => ... so on, up to the root-exception
         
        if no line-information is available:
         className.method#exceptionClassName(message) => causingClassName.method#exceptionClassName(message) => ... so on, up to the root-exception
         
        Parameters:
        t - -
        Returns:
        a message of the format which is described above.