public class LoggedException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG |
static int |
ERROR |
static int |
FATAL |
static int |
INFO |
static int |
TRACE |
static int |
WARN |
Constructor and Description |
---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int TRACE
public static final int DEBUG
public static final int WARN
public static final int ERROR
public static final int FATAL
public static final int INFO
public LoggedException(org.apache.commons.logging.Log log, int level, String message, Throwable cause)
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.public LoggedException(org.apache.commons.logging.Log log, String message, Throwable cause)
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 © 2014. All Rights Reserved.