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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandling
public ExceptionHandling()
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()