org.jtiger.framework
Class PositionOutOfBoundsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jtiger.framework.PositionOutOfBoundsException
All Implemented Interfaces:
Serializable, Positionable

public final class PositionOutOfBoundsException
extends RuntimeException
implements Positionable

An exception that is thrown when a structure's position is specified that is outside of the permissible bounds for that structure.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218
Author:
Tony Morris
See Also:
Serialized Form

Constructor Summary
PositionOutOfBoundsException(int position)
          Construct a PositionOutOfBoundsException with the given position.
PositionOutOfBoundsException(int position, String message)
          Construct a PositionOutOfBoundsException with the given position and message.
PositionOutOfBoundsException(int position, String message, Throwable cause)
          Construct a PositionOutOfBoundsException with the given position, message and cause.
PositionOutOfBoundsException(int position, Throwable cause)
          Construct a PositionOutOfBoundsException with the given position and cause.
 
Method Summary
 int getPosition()
          Returns the position that is outside of the permissible bounds for this structure.
 
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
 

Constructor Detail

PositionOutOfBoundsException

public PositionOutOfBoundsException(int position)
Construct a PositionOutOfBoundsException with the given position.

Parameters:
position - The position that is outside of the permissible bounds.

PositionOutOfBoundsException

public PositionOutOfBoundsException(int position,
                                    String message)
Construct a PositionOutOfBoundsException with the given position and message.

Parameters:
position - The position that is outside of the permissible bounds.
message - The exception message.

PositionOutOfBoundsException

public PositionOutOfBoundsException(int position,
                                    Throwable cause)
Construct a PositionOutOfBoundsException with the given position and cause.

Parameters:
position - The position that is outside of the permissible bounds.
cause - The cause of this exception.

PositionOutOfBoundsException

public PositionOutOfBoundsException(int position,
                                    String message,
                                    Throwable cause)
Construct a PositionOutOfBoundsException with the given position, message and cause.

Parameters:
position - The position that is outside of the permissible bounds.
message - The exception message.
cause - The cause of this exception.
Method Detail

getPosition

public int getPosition()
Returns the position that is outside of the permissible bounds for this structure.

Specified by:
getPosition in interface Positionable
Returns:
The position that is outside of the permissible bounds for this structure.