Class DimensionMismatchException

All Implemented Interfaces:
Serializable, LocalizedException
Direct Known Subclasses:
NonSquareMatrixException, NonSquareOperatorException

@Deprecated public class DimensionMismatchException extends MathIllegalNumberException
Deprecated.
as of 1.0, this exception is replaced by MathIllegalArgumentException
Exception to be thrown when two dimensions differ.
See Also:
  • Constructor Details

    • DimensionMismatchException

      public DimensionMismatchException(Localizable specific, int wrong, int expected)
      Deprecated.
      Construct an exception from the mismatched dimensions.
      Parameters:
      specific - Specific context information pattern.
      wrong - Wrong dimension.
      expected - Expected dimension.
    • DimensionMismatchException

      public DimensionMismatchException(int wrong, int expected)
      Deprecated.
      Construct an exception from the mismatched dimensions.
      Parameters:
      wrong - Wrong dimension.
      expected - Expected dimension.
  • Method Details

    • getDimension

      public int getDimension()
      Deprecated.
      Get expected dimension.
      Returns:
      the expected dimension.