|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.pacbell.jfai.toh.domain.AbstractException
net.pacbell.jfai.toh.domain.InvalidMoveException
public class InvalidMoveException
An instance of this class is thrown if an invalid move is detected.
| Constructor Summary | |
|---|---|
InvalidMoveException(Disk culprit,
Disk receiver,
Pin pin)
Creates an instance with the given arguments. |
|
| Method Summary | |
|---|---|
Disk |
getCulprit()
Gets the culprit. |
Pin |
getPin()
Gets the pin. |
Disk |
getReceiver()
Gets the receiver. |
| 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 |
| Constructor Detail |
|---|
public InvalidMoveException(Disk culprit,
Disk receiver,
Pin pin)
culprit - the disk that caused the exceptionreceiver - the receiving diskpin - the pin where the exception occurred| Method Detail |
|---|
public Disk getCulprit()
public Pin getPin()
public Disk getReceiver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||