net.sf.jabb.util.ex
Class LoggedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sf.jabb.util.ex.LoggedException
- All Implemented Interfaces:
- Serializable
public class LoggedException
- extends Exception
The exception that had been logged by commons-logging.
- Author:
- James Hu
- See Also:
- Serialized Form
|
Constructor Summary |
LoggedException(org.apache.commons.logging.Log log,
int level,
String message,
Throwable cause)
Create a new instance, and at the same time, ensure the original exception is logged. |
LoggedException(org.apache.commons.logging.Log log,
String message,
Throwable cause)
Create a new instance, and at the same time, ensure the original exception is logged as error. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TRACE
public static final int TRACE
- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
WARN
public static final int WARN
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
FATAL
public static final int FATAL
- See Also:
- Constant Field Values
INFO
public static final int INFO
- See Also:
- Constant Field Values
LoggedException
public LoggedException(org.apache.commons.logging.Log log,
int level,
String message,
Throwable cause)
- Create a new instance, and at the same time, ensure the original exception is logged.
- Parameters:
log - the log utilitylevel - level of the logmessage - descriptioncause - the original exception. If it is of type LoggedException,
then the newly created instance is a clone of itself.
LoggedException
public LoggedException(org.apache.commons.logging.Log log,
String message,
Throwable cause)
- Create a new instance, and at the same time, ensure the original exception is logged as error.
- Parameters:
log - the log utilitymessage - descriptioncause - the original exception. If it is of type LoggedException,
then the newly created instance is a clone of itself.
Copyright © 2012. All Rights Reserved.