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: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Field Summary
protected Stringmessage
The error message passed to our constructor (if any)
protected Throwablethrowable
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(Throwable throwable)
Construct a new LifecycleException for the specified throwable.
LifecycleException(String message, Throwable throwable)
Construct a new LifecycleException for the specified message and throwable.
Method Summary
StringgetMessage()
Returns the message associated with this exception, if any.
ThrowablegetThrowable()
Returns the throwable that caused this exception, if any.
StringtoString()
Return a formatted string that describes this exception.

Field Detail

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 Detail

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(Throwable throwable)
Construct a new LifecycleException for the specified throwable.

Parameters: throwable Throwable that caused 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

Method Detail

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 © 2000-2011 Apache Software Foundation. All Rights Reserved.