model.moves
Class PromotionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by model.moves.PromotionException
All Implemented Interfaces:
java.io.Serializable

public class PromotionException
extends java.lang.RuntimeException

This class is an Exception and is thrown when a Promotion Move occurs.

See Also:
Promotion, CapturePromotion, Serialized Form

Constructor Summary
PromotionException()
          constructor: Raises a new PromotionException.
PromotionException(java.lang.String s)
          constructor: Raises a new PromotionException with the given String as an Exception message.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PromotionException

public PromotionException()
constructor: Raises a new PromotionException.
postcondition: Creates a new PromotionException.


PromotionException

public PromotionException(java.lang.String s)
constructor: Raises a new PromotionException with the given String as an Exception message.
postcondition: Raises a new PromotionException.

Parameters:
s - The String message to display.