- java.lang.Object
-
- ch.bind.philib.lang.ExceptionUtil
-
public abstract class ExceptionUtil extends Object
- Author:
- Philipp Meinen
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExceptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbuildMessageChain(Throwable t)Returns a one-line representation of an exception.
-
-
-
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.
-
-