org.deegree_impl.model.pt
Class MismatchedDimensionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.deegree_impl.model.pt.MismatchedDimensionException
All Implemented Interfaces:
java.io.Serializable

public class MismatchedDimensionException
extends java.lang.RuntimeException

Indicates that an operation cannot be completed properly because of a mismatch in the dimensions of object attributes.

Version:
1.0
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
MismatchedDimensionException()
          Creates new exception without detail message.
MismatchedDimensionException(Dimensioned object1, Dimensioned object2)
          Construct an exception with a detail message stating that two objects don't have the same number of dimensions.
MismatchedDimensionException(int dim1, int dim2)
          Construct an exception with a detail message stating that two objects don't have the same number of dimensions.
MismatchedDimensionException(java.lang.String msg)
          Constructs an exception with the specified detail message.
 
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

MismatchedDimensionException

public MismatchedDimensionException()
Creates new exception without detail message.


MismatchedDimensionException

public MismatchedDimensionException(java.lang.String msg)
Constructs an exception with the specified detail message.

Parameters:
msg - the detail message.

MismatchedDimensionException

public MismatchedDimensionException(Dimensioned object1,
                                    Dimensioned object2)
Construct an exception with a detail message stating that two objects don't have the same number of dimensions.

Parameters:
object1 - The first dimensioned object.
object2 - The second dimensioned object. Its dimension should be different than object1's dimension, otherwise there is no dimension mismatch!

MismatchedDimensionException

public MismatchedDimensionException(int dim1,
                                    int dim2)
Construct an exception with a detail message stating that two objects don't have the same number of dimensions.

Parameters:
dim1 - Number of dimensions for the first object.
dim2 - Number of dimensions for the second object. It shoud be different than dim1, otherwise there is no dimension mismatch!