ch.bind.philib.lang
Class ExceptionUtil

java.lang.Object
  extended by ch.bind.philib.lang.ExceptionUtil

public abstract class ExceptionUtil
extends Object

TODO

Author:
Philipp Meinen

Constructor Summary
protected ExceptionUtil()
           
 
Method Summary
static String buildMessageChain(Throwable t)
          Returns a one-line representation of an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2013. All Rights Reserved.