org.apache.catalina
public final class: LifecycleException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.catalina.LifecycleException
All Implemented Interfaces:
Serializable
General purpose exception that is thrown to indicate a lifecycle related
problem. Such exceptions should generally be considered fatal to the
operation of the application containing this component.
- author:
Craig - R. McClanahan
- version:
$ - Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
| Field Summary |
|---|
| protected String | message | The error message passed to our constructor (if any) |
| protected Throwable | throwable | The underlying exception or error passed to our constructor (if any) |
| Constructor: |
public LifecycleException() {
this(null, null);
}
Construct a new LifecycleException with no other information. |
public LifecycleException(String message) {
this(message, null);
}
Construct a new LifecycleException for the specified message. Parameters:
message - Message describing this exception
|
public LifecycleException(Throwable throwable) {
this(null, throwable);
}
Construct a new LifecycleException for the specified throwable. Parameters:
throwable - Throwable that caused this exception
|
public LifecycleException(String message,
Throwable throwable) {
super();
this.message = message;
this.throwable = throwable;
}
Construct a new LifecycleException for the specified message
and throwable. Parameters:
message - Message describing this exception
throwable - Throwable that caused this exception
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.apache.catalina.LifecycleException Detail: |
public String getMessage() {
//---------------------------------------------------------- Public Methods
return (message);
}
Returns the message associated with this exception, if any. |
public Throwable getThrowable() {
return (throwable);
}
Returns the throwable that caused this exception, if any. |
public String toString() {
StringBuffer sb = new StringBuffer("LifecycleException: ");
if (message != null) {
sb.append(message);
if (throwable != null) {
sb.append(": ");
}
}
if (throwable != null) {
sb.append(throwable.toString());
}
return (sb.toString());
}
Return a formatted string that describes this exception. |