Apache Tomcat 7.0.0

org.apache.catalina
Class LifecycleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.catalina.LifecycleException
All Implemented Interfaces:
Serializable

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:
$Id: LifecycleException.java 939305 2010-04-29 13:43:39Z kkolinko $
Author:
Craig R. McClanahan
See Also:
Serialized Form

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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

Overrides:
getMessage in class Throwable

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.

Overrides:
toString in class Throwable

Apache Tomcat 7.0.0

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.