FileDocCategorySizeDatePackage
LifecycleException.javaAPI DocApache Tomcat 6.0.143691Fri Jul 20 04:20:34 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: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

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());