org.apache.commons.math
Class DimensionMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.math.MathException
              extended by org.apache.commons.math.DimensionMismatchException
All Implemented Interfaces:
Serializable

public class DimensionMismatchException
extends MathException

Error thrown when two dimensions differ.

Since:
1.2
Version:
$Revision: 811827 $ $Date: 2009-09-06 11:32:50 -0400 (Sun, 06 Sep 2009) $
See Also:
Serialized Form

Constructor Summary
DimensionMismatchException(int dimension1, int dimension2)
          Construct an exception from the mismatched dimensions
 
Method Summary
 int getDimension1()
          Get the first dimension
 int getDimension2()
          Get the second dimension
 
Methods inherited from class org.apache.commons.math.MathException
getArguments, getLocalizedMessage, getMessage, getMessage, getPattern, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DimensionMismatchException

public DimensionMismatchException(int dimension1,
                                  int dimension2)
Construct an exception from the mismatched dimensions

Parameters:
dimension1 - first dimension
dimension2 - second dimension
Method Detail

getDimension1

public int getDimension1()
Get the first dimension

Returns:
first dimension

getDimension2

public int getDimension2()
Get the second dimension

Returns:
second dimension


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.