FileDocCategorySizeDatePackage
LifecycleException.javaAPI DocGlassfish v2 API4708Fri May 04 22:31:52 BST 2007org.apache.catalina

LifecycleException

public 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.
author
Craig R. McClanahan
version
$Revision: 1.3 $ $Date: 2007/05/05 05:31:51 $

Fields 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)
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.

param
message Message describing this exception


        this(message, null);

    
public LifecycleException(Throwable throwable)
Construct a new LifecycleException for the specified throwable.

param
throwable Throwable that caused this exception


        this(null, throwable);

    
public LifecycleException(String message, Throwable throwable)
Construct a new LifecycleException for the specified message and throwable.

param
message Message describing this exception
param
throwable Throwable that caused this exception


        super();
        this.message = message;
        this.throwable = throwable;

    
Methods Summary
public java.lang.StringgetMessage()
Returns the message associated with this exception, if any.



    //---------------------------------------------------------- Public Methods


                  
       

        return (message);

    
public java.lang.ThrowablegetThrowable()
Returns the throwable that caused this exception, if any.


        return (throwable);

    
public java.lang.StringtoString()
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());