edu.uci.ics.inf111.dvdvendor.exceptions
Class IncorrectStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
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)