LifecycleExceptionpublic final class LifecycleException extends Exception 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. |
Fields Summary |
---|
protected String | messageThe error message passed to our constructor (if any) | protected Throwable | throwableThe underlying exception or error passed to our constructor (if any) |
Constructors Summary |
---|
public LifecycleException()Construct a new LifecycleException with no other information.
this(null, null);
| public LifecycleException(String message)Construct a new LifecycleException for the specified message.
this(message, null);
| public LifecycleException(Throwable throwable)Construct a new LifecycleException for the specified throwable.
this(null, throwable);
| public LifecycleException(String message, Throwable throwable)Construct a new LifecycleException for the specified message
and throwable.
super();
this.message = message;
this.throwable = throwable;
|
Methods Summary |
---|
public java.lang.String | getMessage()Returns the message associated with this exception, if any.
//---------------------------------------------------------- Public Methods
return (message);
| public java.lang.Throwable | getThrowable()Returns the throwable that caused this exception, if any.
return (throwable);
| public java.lang.String | toString()Return a formatted string that describes this exception.
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());
|
|