rcf.core.util.position
Class IncompatiblePositionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by rcf.core.util.position.IncompatiblePositionException
All Implemented Interfaces:
Serializable

@Revision(value="$Revision: 1.5 $",
          date="$Date: 2006/12/16 17:53:21 $",
          tag="$Name:  $")
public class IncompatiblePositionException
extends IllegalArgumentException

Indicates that a position specified as a method argument is incompatible in that it does not refer to a position in the appropriate abstract data structure. For example this is thrown by OrderedBiPosition.swap(rcf.core.util.collection.position.OrderedBiPosition).

TODO: Javadoc review, Seal/Finalize

Version:
$Revision: 1.5 $
Author:
Greg Gibeling
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          An unique class level ID for use by the java serialization code.
 
Constructor Summary
IncompatiblePositionException()
          Constructs an IncompatiblePositionException with no detailed message.
IncompatiblePositionException(String message)
          Constructs an IncompatiblePositionException with the specified detailed message.
IncompatiblePositionException(String message, Throwable cause)
          Constructs an IncompatiblePositionException with the specified detailed message and cause.
IncompatiblePositionException(Throwable cause)
          Constructs an IncompatiblePositionException with the specified cause and a detailed message of (cause == null) ? null : cause.toString(), which typically contains the class and detail message of cause.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
An unique class level ID for use by the java serialization code.

See Also:
Constant Field Values
Constructor Detail

IncompatiblePositionException

public IncompatiblePositionException()
Constructs an IncompatiblePositionException with no detailed message.


IncompatiblePositionException

public IncompatiblePositionException(String message)
Constructs an IncompatiblePositionException with the specified detailed message.

Parameters:
message - The detailed message.

IncompatiblePositionException

public IncompatiblePositionException(String message,
                                     Throwable cause)
Constructs an IncompatiblePositionException with the specified detailed message and cause.

Notice that the detailed message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). null values are permitted, and indicate that the cause is nonexistent or unknown.

IncompatiblePositionException

public IncompatiblePositionException(Throwable cause)
Constructs an IncompatiblePositionException with the specified cause and a detailed message of (cause == null) ? null : cause.toString(), which typically contains the class and detail message of cause. This constructor is useful for exceptions that are little more than wrappers for other throwables.

Parameters:
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). null values are permitted, and indicate that the cause is nonexistent or unknown.