public class MultiDimensionMismatchException extends MathIllegalArgumentException
| Constructor and Description |
|---|
MultiDimensionMismatchException(Integer[] wrongIn,
Integer[] expectedIn)
Deprecated.
since 4.17, as the default message does not give the user enough context. Use
MultiDimensionMismatchException(Localizable, Integer[], Integer[])
instead, with a more explicit message. |
MultiDimensionMismatchException(Localizable specific,
Integer[] wrongIn,
Integer[] expectedIn)
Construct an exception from the mismatched dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExpectedDimension(int index)
Getter for the expected dimension stored at
index. |
Integer[] |
getExpectedDimensions()
Getter for the array containing the expected dimensions.
|
int |
getWrongDimension(int index)
Getter for the wrong dimension stored at
index. |
Integer[] |
getWrongDimensions()
Getter for the array containing the wrong dimensions.
|
getContext, getLocalizedMessage, getMessageaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString@Deprecated public MultiDimensionMismatchException(Integer[] wrongIn, Integer[] expectedIn)
MultiDimensionMismatchException(Localizable, Integer[], Integer[])
instead, with a more explicit message.wrongIn - Wrong dimensionsexpectedIn - Expected dimensionspublic MultiDimensionMismatchException(Localizable specific, Integer[] wrongIn, Integer[] expectedIn)
specific - Message pattern providing the specific context of the errorwrongIn - Wrong dimensionsexpectedIn - Expected dimensionspublic Integer[] getWrongDimensions()
public Integer[] getExpectedDimensions()
public int getWrongDimension(int index)
index.index - Dimension indexindexpublic int getExpectedDimension(int index)
index.index - Dimension indexindexCopyright © 2025 CNES. All rights reserved.