Saturday, August 18, 2007

IllegalTurnException Class

//---------------------------------------------------------------------------
/**
A IllegalTurnException object represents an exception when an attempt is made
to add a card to an already busted hand.
@author: Tommy Flewwelling
@version: 1.00
Creation Date: 2007/06/12
*/
class IllegalTurnException extends RuntimeException{
public IllegalTurnException(){
super("Invalid action - an attempt was made to add a card to an already busted hand.");}

public IllegalTurnException(String message){
super (message);
//System.out.println ("I'm in the IllegalTurnException's constructor.");
}
}
//---------------------------------------------------------------------------

No comments: