reservations
Class ReservationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--reservations.ReservationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ItineraryException, ReservationRequestException

public class ReservationException
extends java.lang.RuntimeException

ReservationException is the superclass of those exceptions that are related to the reservation system.

See Also:
Serialized Form

Constructor Summary
ReservationException()
          Constructs an ReservationException with no message string.
ReservationException(java.lang.String message)
          Constructs an ReservationException with the specified message string.
ReservationException(java.lang.String message, java.lang.Exception e)
          Constructs an ReservationException with the specified message string and encapsulating some other Exception.
 
Method Summary
 java.lang.String toString()
          Returns the exception message text, if any as well that for the wrapped exception, if one was specified on construction.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservationException

public ReservationException()
Constructs an ReservationException with no message string.


ReservationException

public ReservationException(java.lang.String message)
Constructs an ReservationException with the specified message string.


ReservationException

public ReservationException(java.lang.String message,
                            java.lang.Exception e)
Constructs an ReservationException with the specified message string and encapsulating some other Exception.

Method Detail

toString

public java.lang.String toString()
Returns the exception message text, if any as well that for the wrapped exception, if one was specified on construction.

Overrides:
toString in class java.lang.Throwable