edu.uci.ics.inf111.dvdvendor.exceptions
Class IncorrectStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.uci.ics.inf111.dvdvendor.exceptions.IncorrectStateException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddWhileDispensingException, AddWhilePayingException, CalculateWithNoItemException, DispenseWhileAddingException, PayWhileDispensingException, PayWithNoItemsException, ProductAlreadyInCheckOutCartException, ProductAlreadyRentedException, ProductNotRentedException

public class IncorrectStateException
extends java.lang.Exception

The IncorrectStateException acts as a parent class for those exceptions which represent violations of the business rules of the states a DVDVendor object can be in. It is used directly in some cases.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
IncorrectStateException()
           
IncorrectStateException(java.lang.String message)
           
IncorrectStateException(java.lang.String message, java.lang.Throwable cause)
           
IncorrectStateException(java.lang.Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

IncorrectStateException

public IncorrectStateException()

IncorrectStateException

public IncorrectStateException(java.lang.String message)

IncorrectStateException

public IncorrectStateException(java.lang.String message,
                               java.lang.Throwable cause)

IncorrectStateException

public IncorrectStateException(java.lang.Throwable cause)