de.kosi.model.game
Class InvalidBidException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--de.kosi.model.game.InvalidBidException
All Implemented Interfaces:
java.io.Serializable

public class InvalidBidException
extends java.lang.Exception

This class is an exception class which is thrown if an invalid bid was inserted into the bidding sequence.

ChangeLog:

 $Log: InvalidBidException.java,v $
 Revision 1.1.1.1  2001/04/29 18:05:18  jiriki
 Imported sources from zola.

 Revision 1.4  2001/04/08 14:30:45  wombat
 Anfang Implementierung der selbst-alertierung

 Revision 1.3  2001/02/09 19:26:33  login
 Doc-Update

 Revision 1.2  2001/02/06 15:37:44  login
 Updated docs


 

Version:
$Revision: 1.1.1.1 $ ($Date: 2001/04/29 18:05:18 $)
Author:
Timo, Niklas, Ole
See Also:
Serialized Form

Field Summary
static int INSUFFICIENT_BID
          This constant refers to insufficient bids which means that the level was too low or the level was equal to the minimum required level but the suit was too low.
static java.lang.String[] MESSAGES
          This array constant stores String representations of the three exception types.
static int NO_DOUBLE_POSSIBLE
          This constant means that a double bid was impossible, e.g. when no opponent made a suit bid before.
static int NO_REDOUBLE_POSSIBLE
          This constant means that a redouble bid was impossible, e.g. when no opponent make a double bid before.
static int ONLY_ALERT_SUIT_BIDS
          This constant means that only suit bids can be alerted.
 
Constructor Summary
InvalidBidException(int type)
          This constructor creates a new InvalidBidException with the specified exception type.
 
Method Summary
 int getType()
          Returns the exception type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSUFFICIENT_BID

public static final int INSUFFICIENT_BID
This constant refers to insufficient bids which means that the level was too low or the level was equal to the minimum required level but the suit was too low.

NO_DOUBLE_POSSIBLE

public static final int NO_DOUBLE_POSSIBLE
This constant means that a double bid was impossible, e.g. when no opponent made a suit bid before.

NO_REDOUBLE_POSSIBLE

public static final int NO_REDOUBLE_POSSIBLE
This constant means that a redouble bid was impossible, e.g. when no opponent make a double bid before.

ONLY_ALERT_SUIT_BIDS

public static final int ONLY_ALERT_SUIT_BIDS
This constant means that only suit bids can be alerted.

MESSAGES

public static final java.lang.String[] MESSAGES
This array constant stores String representations of the three exception types.
Constructor Detail

InvalidBidException

public InvalidBidException(int type)
This constructor creates a new InvalidBidException with the specified exception type. The given exception type won't be checked for validity!!
Parameters:
type - The exception type. Must be one of the three constants INSUFFICIENT_BID, NO_DOUBLE_POSSIBLE or NO_REDOUBLE_POSSIBLE.
Method Detail

getType

public int getType()
Returns the exception type.
Returns:
The exception type.