|
|||||||||
| 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 Integer[] |
expected
Correct dimensions. |
private static long |
serialVersionUID
Serializable version Id. |
private Integer[] |
wrong
Wrong dimensions. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
int |
getExpectedDimension(int index)
|
Integer[] |
getExpectedDimensions()
|
int |
getWrongDimension(int index)
|
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 Integer[] wrong
private final Integer[] expected
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public Integer[] getWrongDimensions()
public 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 | ||||||||