com.sap.tc.logging
Class ExceptionManager
java.lang.Object
|
+--com.sap.tc.logging.ExceptionManager
- public class ExceptionManager
- extends java.lang.Object
|
Method Summary |
static java.lang.Exception |
getException()
Get last thrown exception. |
static java.util.List |
getExceptions()
Get a list of last thrown exceptions. |
static java.lang.String |
getStackTrace(java.lang.Throwable throwable)
Fills a string with the stack trace of an exception. |
static void |
handleException(java.lang.Exception exc)
Handles exception. |
static void |
handleException(java.lang.Exception exc,
int code)
Handles exception. |
static void |
resetException()
Resets the last exception thrown. |
static void |
UNEXPECTED_EXCEPTION(Location location,
java.lang.String method,
java.lang.String[] args,
java.lang.Exception ex)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERR_RESET
public static final int ERR_RESET
ERR_UNKNOWN
public static final int ERR_UNKNOWN
ERR_OPEN
public static final int ERR_OPEN
ERR_CLOSE
public static final int ERR_CLOSE
ERR_WRITE
public static final int ERR_WRITE
ERR_VALUE
public static final int ERR_VALUE
ERR_FORMAT
public static final int ERR_FORMAT
ExceptionManager
public ExceptionManager()
getException
public static java.lang.Exception getException()
- Get last thrown exception.
getExceptions
public static java.util.List getExceptions()
- Get a list of last thrown exceptions.
resetException
public static void resetException()
- Resets the last exception thrown.
- See Also:
getException(),
#throwException()
getStackTrace
public static java.lang.String getStackTrace(java.lang.Throwable throwable)
- Fills a string with the stack trace of an exception.
- Returns:
- Stack trace
handleException
public static void handleException(java.lang.Exception exc)
- Handles exception.
- Parameters:
e - exception thrown
handleException
public static void handleException(java.lang.Exception exc,
int code)
- Handles exception.
- Parameters:
e - exception thrown
UNEXPECTED_EXCEPTION
public static void UNEXPECTED_EXCEPTION(Location location,
java.lang.String method,
java.lang.String[] args,
java.lang.Exception ex)