com.sap.tc.logging
Class ExceptionHandling

java.lang.Object
  |
  +--com.sap.tc.logging.ExceptionHandling
Direct Known Subclasses:
BaseLog, Log, LogController, LoggingManager, LogRecord

public class ExceptionHandling
extends java.lang.Object


Constructor Summary
ExceptionHandling()
           
 
Method Summary
 java.lang.Exception getException()
          Fetches the last exception thrown
 java.util.List getExceptions()
          Fetches the List of the last thrown exceptions.
 void handleException(java.lang.Exception exc)
           
 void handleException(java.lang.Exception exc, int code)
           
 void resetException()
          Resets the last exception thrown.
 void throwException()
          Rethrows the last exception thrown.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandling

public ExceptionHandling()
Method Detail

handleException

public void handleException(java.lang.Exception exc,
                            int code)

handleException

public void handleException(java.lang.Exception exc)

resetException

public void resetException()
Resets the last exception thrown.
See Also:
getException(), throwException()

getException

public java.lang.Exception getException()
Fetches the last exception thrown
Returns:
Last exception thrown
See Also:
resetException()

getExceptions

public java.util.List getExceptions()
Fetches the List of the last thrown exceptions.
Returns:
List of the last throw exceptions.
See Also:
resetException()

throwException

public void throwException()
                    throws java.lang.Exception
Rethrows the last exception thrown. This method is useful if an exception is supposed to be dealt with according to a hierarchy of handlers already declared in a context.
Throws:
java.lang.Exception - Last exception thrown
See Also:
resetException()