ca.ualberta.cs.poker.free.server
Class TimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ca.ualberta.cs.poker.free.server.TimeoutException
All Implemented Interfaces:
java.io.Serializable

public class TimeoutException
extends java.lang.Exception

This exception is a little more general than its name implies: any socket or i/o exception during transfer results in a timeout exception.

See Also:
Serialized Form

Field Summary
 int playerIndex
          The index of the player that times out.
 boolean serious
          A serious timeout exception is caused by a message that fails to send.
 
Constructor Summary
TimeoutException(int playerIndex, boolean serious)
          Creates a new instance of TimeoutException
 
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

playerIndex

public int playerIndex
The index of the player that times out.


serious

public boolean serious
A serious timeout exception is caused by a message that fails to send. Because a failure to send might not be representable by any standard signal, the player forfeits the remainder of his blinds.

Constructor Detail

TimeoutException

public TimeoutException(int playerIndex,
                        boolean serious)
Creates a new instance of TimeoutException