com.sap.tc.logging
Class ExceptionManager

java.lang.Object
  |
  +--com.sap.tc.logging.ExceptionManager

public class ExceptionManager
extends java.lang.Object


Field Summary
static int ERR_CLOSE
           
static int ERR_FORMAT
           
static int ERR_OPEN
           
static int ERR_RESET
           
static int ERR_UNKNOWN
           
static int ERR_VALUE
           
static int ERR_WRITE
           
 
Constructor Summary
ExceptionManager()
           
 
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
 

Field Detail

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
Constructor Detail

ExceptionManager

public ExceptionManager()
Method Detail

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)