org.apache.commons.math3.exception
public class MultiDimensionMismatchException extends MathIllegalArgumentException
Modifier and Type | Field and Description |
---|---|
private Integer[] |
expected
Correct dimensions.
|
private static long |
serialVersionUID
Serializable version Id.
|
private Integer[] |
wrong
Wrong dimensions.
|
Constructor and Description |
---|
MultiDimensionMismatchException(Integer[] wrong,
Integer[] expected)
Construct an exception from the mismatched dimensions.
|
MultiDimensionMismatchException(Localizable specific,
Integer[] wrong,
Integer[] expected)
Construct an exception from the mismatched dimensions.
|
Modifier and Type | Method and Description |
---|---|
int |
getExpectedDimension(int index) |
Integer[] |
getExpectedDimensions() |
int |
getWrongDimension(int index) |
Integer[] |
getWrongDimensions() |
getContext, getLocalizedMessage, getMessage
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private final Integer[] wrong
private final Integer[] expected
public MultiDimensionMismatchException(Integer[] wrong, Integer[] expected)
wrong
- Wrong dimensions.expected
- Expected dimensions.public MultiDimensionMismatchException(Localizable specific, Integer[] wrong, Integer[] expected)
specific
- Message pattern providing the specific context of
the error.wrong
- Wrong dimensions.expected
- Expected dimensions.public Integer[] getWrongDimensions()
public Integer[] getExpectedDimensions()
public int getWrongDimension(int index)
index
- Dimension index.index
.public int getExpectedDimension(int index)
index
- Dimension index.index
.Copyright (c) 2003-2013 Apache Software Foundation