Class MismatchedDimensionException

  • All Implemented Interfaces:
    Serializable

    public class MismatchedDimensionException
    extends IllegalArgumentException
    Indicates that an operation cannot be completed properly because of a mismatch in the dimensions of an argument given to a method. For example this exception may be thrown if a method expects a two-dimensional DirectPosition, but the dimension of a given position is 3.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MismatchedDimensionException

        public MismatchedDimensionException()
        Creates an exception with no message.
      • MismatchedDimensionException

        public MismatchedDimensionException​(String message)
        Creates an exception with the specified message.
        Parameters:
        message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
      • MismatchedDimensionException

        public MismatchedDimensionException​(String message,
                                            Throwable cause)
        Creates an exception with the specified message and cause.
        Parameters:
        message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
        cause - the cause, saved for later retrieval by the Throwable.getCause() method.