public class DimensionMismatchException extends MathIllegalNumberException
| Constructor and Description |
|---|
DimensionMismatchException(int wrong,
int expected)
Deprecated.
since 4.14, as the default message does not give the user enough context. Use
DimensionMismatchException(Localizable, int, int) instead, with a
more explicit message. |
DimensionMismatchException(Localizable specific,
int wrong,
int expected)
Construct an exception from the mismatched dimensions.
|
DimensionMismatchException(Localizable pattern,
String wrongName,
int wrong,
String expectedName,
int expected)
Construct an exception from the mismatched dimensions.
|
DimensionMismatchException(String specific,
int wrong,
int expected)
Construct an exception from the mismatched dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDimension()
Getter for the expected dimension.
|
getArgumentgetContext, getLocalizedMessage, getMessageaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DimensionMismatchException(Localizable specific, int wrong, int expected)
specific - Specific context information patternwrong - Wrong dimensionexpected - Expected dimensionpublic DimensionMismatchException(String specific, int wrong, int expected)
specific - Specific context information stringwrong - Wrong dimensionexpected - Expected dimensionpublic DimensionMismatchException(Localizable pattern, String wrongName, int wrong, String expectedName, int expected)
pattern - Specific context information stringwrongName - Wrong dimension namewrong - Wrong dimensionexpectedName - Expected dimension nameexpected - Expected dimension@Deprecated public DimensionMismatchException(int wrong, int expected)
DimensionMismatchException(Localizable, int, int) instead, with a
more explicit message.wrong - Wrong dimensionexpected - Expected dimensionCopyright © 2025 CNES. All rights reserved.