org.equanda.util
Class ExceptionUtil

java.lang.Object
  extended by org.equanda.util.ExceptionUtil

public class ExceptionUtil
extends Object

ExceptionUtil allows you to get more information about an exception, without having to investigate the causes.

Author:
Joachim Van der Auwera

Constructor Summary
ExceptionUtil(Throwable exc)
           
 
Method Summary
 String getConcatenatedMessage()
          Get concatenated message, a sequence of te (short) message for the exception and the causes.
 String getMessage()
           
 void init(Throwable exc)
           
 boolean isRecoverable()
           
 boolean isRetryable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil(Throwable exc)
Method Detail

init

public void init(Throwable exc)

isRecoverable

public boolean isRecoverable()
Returns:
is it likely that the error can be recovered from, or should we exit?

isRetryable

public boolean isRetryable()
Returns:
would it be useful to retry the operation?

getMessage

public String getMessage()
Returns:
compact error message

getConcatenatedMessage

public String getConcatenatedMessage()
Get concatenated message, a sequence of te (short) message for the exception and the causes.

Returns:
concatenated messages for the exception and causes.


Copyright © 2007-2009. All Rights Reserved.