org.apache.commons.math
Class DimensionMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.math.MathException
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: 746578 $ $Date: 2009-02-21 15:01:14 -0500 (Sat, 21 Feb 2009) $
- See Also:
- Serialized Form
Constructor Summary |
DimensionMismatchException(int dimension1,
int dimension2)
Construct an exception from the mismatched dimensions |
DimensionMismatchException
public DimensionMismatchException(int dimension1,
int dimension2)
- Construct an exception from the mismatched dimensions
- Parameters:
dimension1
- first dimensiondimension2
- second dimension
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 Apache Software Foundation. All Rights Reserved.