Class MultiDimensionMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.hipparchus.exception.MathRuntimeException
-
- org.hipparchus.exception.MathIllegalArgumentException
-
- org.hipparchus.migration.exception.MultiDimensionMismatchException
-
- All Implemented Interfaces:
Serializable,LocalizedException
- Direct Known Subclasses:
MatrixDimensionMismatchException
@Deprecated public class MultiDimensionMismatchException extends MathIllegalArgumentException
Deprecated.as of 1.0, this exception is replaced byMathIllegalArgumentExceptionException to be thrown when two sets of dimensions differ.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiDimensionMismatchException(Integer[] wrong, Integer[] expected)Deprecated.Construct an exception from the mismatched dimensions.MultiDimensionMismatchException(Localizable specific, Integer[] wrong, Integer[] expected)Deprecated.Construct an exception from the mismatched dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetExpectedDimension(int index)Deprecated.Get expected dimension at index.Integer[]getExpectedDimensions()Deprecated.Get array containing the expected dimensions.intgetWrongDimension(int index)Deprecated.Get wrong dimension at index.Integer[]getWrongDimensions()Deprecated.Get array containing the wrong dimensions.-
Methods inherited from class org.hipparchus.exception.MathRuntimeException
createInternalError, createInternalError, getLocalizedMessage, getMessage, getMessage, getParts, getSpecifier
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MultiDimensionMismatchException
public MultiDimensionMismatchException(Integer[] wrong, Integer[] expected)
Deprecated.Construct an exception from the mismatched dimensions.- Parameters:
wrong- Wrong dimensions.expected- Expected dimensions.
-
MultiDimensionMismatchException
public MultiDimensionMismatchException(Localizable specific, Integer[] wrong, Integer[] expected)
Deprecated.Construct an exception from the mismatched dimensions.- Parameters:
specific- Message pattern providing the specific context of the error.wrong- Wrong dimensions.expected- Expected dimensions.
-
-
Method Detail
-
getWrongDimensions
public Integer[] getWrongDimensions()
Deprecated.Get array containing the wrong dimensions.- Returns:
- an array containing the wrong dimensions
-
getExpectedDimensions
public Integer[] getExpectedDimensions()
Deprecated.Get array containing the expected dimensions.- Returns:
- an array containing the expected dimensions
-
getWrongDimension
public int getWrongDimension(int index)
Deprecated.Get wrong dimension at index.- Parameters:
index- Dimension index.- Returns:
- the wrong dimension stored at
index.
-
getExpectedDimension
public int getExpectedDimension(int index)
Deprecated.Get expected dimension at index.- Parameters:
index- Dimension index.- Returns:
- the expected dimension stored at
index.
-
-