org.minueto
Class MinuetoOutOfBoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.minueto.MinuetoOutOfBoundException
All Implemented Interfaces:
java.io.Serializable

public class MinuetoOutOfBoundException
extends java.lang.RuntimeException

Thrown by the draw methods of the Minueto package to indicate that that the user tried to draw something out of the screen or image.

Since:
Minueto 0.4
See Also:
Serialized Form

Constructor Summary
MinuetoOutOfBoundException()
          Constructs a MinuetoOutOfBoundException with null as its error message string.
MinuetoOutOfBoundException(int valueFalse, int valueMin, int valueMax)
          Constructs a MinuetoOutOfBoundException, saving a detailed description of the error, including the erroneous value and the maximum/minimum possible values.
MinuetoOutOfBoundException(java.lang.String s)
          Constructs a MinuetoOutOfBoundException, saving a reference to the error message string s for later retrieval by the getMessage method.
 
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

MinuetoOutOfBoundException

public MinuetoOutOfBoundException()
Constructs a MinuetoOutOfBoundException with null as its error message string.


MinuetoOutOfBoundException

public MinuetoOutOfBoundException(java.lang.String s)
Constructs a MinuetoOutOfBoundException, saving a reference to the error message string s for later retrieval by the getMessage method.

Parameters:
s - String indicating the detailed message.

MinuetoOutOfBoundException

public MinuetoOutOfBoundException(int valueFalse,
                                  int valueMin,
                                  int valueMax)
Constructs a MinuetoOutOfBoundException, saving a detailed description of the error, including the erroneous value and the maximum/minimum possible values. That message string s can be later retrieved by the getMessage method.

Parameters:
valueFalse - int denoting the wrong value.
valueMin - int denoting the minimum possible value.
valueMax - int denoting the maximum possible value.