org.apache.catalina

Class 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.

Version:
$Revision: 1.2 $ $Date: 2004/02/27 14:58:38 $

Author:
Craig R. McClanahan

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 Summary

LifecycleException()
Construct a new LifecycleException with no other information.
LifecycleException(String message)
Construct a new LifecycleException for the specified message.
LifecycleException(String message, Throwable throwable)
Construct a new LifecycleException for the specified message and throwable.
LifecycleException(Throwable throwable)
Construct a new LifecycleException for the specified throwable.

Method Summary

String
getMessage()
Returns the message associated with this exception, if any.
Throwable
getThrowable()
Returns the throwable that caused this exception, if any.
String
toString()
Return a formatted string that describes this exception.

Field Details

message

protected String message
The error message passed to our constructor (if any)


throwable

protected Throwable throwable
The underlying exception or error passed to our constructor (if any)

Constructor Details

LifecycleException

public LifecycleException()
Construct a new LifecycleException with no other information.


LifecycleException

public LifecycleException(String message)
Construct a new LifecycleException for the specified message.

Parameters:
message - Message describing this exception


LifecycleException

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

Parameters:
message - Message describing this exception
throwable - Throwable that caused this exception


LifecycleException

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

Parameters:
throwable - Throwable that caused this exception

Method Details

getMessage

public String getMessage()
Returns the message associated with this exception, if any.


getThrowable

public Throwable getThrowable()
Returns the throwable that caused this exception, if any.


toString

public String toString()
Return a formatted string that describes this exception.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.