|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.commons.math3.exception.MathIllegalArgumentException
org.apache.commons.math3.exception.MultiDimensionMismatchException
public class MultiDimensionMismatchException
Exception to be thrown when two sets of dimensions differ.
Field Summary | |
---|---|
private java.lang.Integer[] |
expected
Correct dimensions. |
private static long |
serialVersionUID
Serializable version Id. |
private java.lang.Integer[] |
wrong
Wrong dimensions. |
Constructor Summary | |
---|---|
MultiDimensionMismatchException(java.lang.Integer[] wrong,
java.lang.Integer[] expected)
Construct an exception from the mismatched dimensions. |
|
MultiDimensionMismatchException(Localizable specific,
java.lang.Integer[] wrong,
java.lang.Integer[] expected)
Construct an exception from the mismatched dimensions. |
Method Summary | |
---|---|
int |
getExpectedDimension(int index)
|
java.lang.Integer[] |
getExpectedDimensions()
|
int |
getWrongDimension(int index)
|
java.lang.Integer[] |
getWrongDimensions()
|
Methods inherited from class org.apache.commons.math3.exception.MathIllegalArgumentException |
---|
getContext, getLocalizedMessage, getMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final java.lang.Integer[] wrong
private final java.lang.Integer[] expected
Constructor Detail |
---|
public MultiDimensionMismatchException(java.lang.Integer[] wrong, java.lang.Integer[] expected)
wrong
- Wrong dimensions.expected
- Expected dimensions.public MultiDimensionMismatchException(Localizable specific, java.lang.Integer[] wrong, java.lang.Integer[] expected)
specific
- Message pattern providing the specific context of
the error.wrong
- Wrong dimensions.expected
- Expected dimensions.Method Detail |
---|
public java.lang.Integer[] getWrongDimensions()
public java.lang.Integer[] getExpectedDimensions()
public int getWrongDimension(int index)
index
- Dimension index.
index
.public int getExpectedDimension(int index)
index
- Dimension index.
index
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |