org.apache.ignite.ml.math.exceptions.math

## Class CardinalityException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.apache.ignite.IgniteException
        - - org.apache.ignite.ml.math.exceptions.math.MathRuntimeException
          - - org.apache.ignite.ml.math.exceptions.math.MathIllegalArgumentException
            - - org.apache.ignite.ml.math.exceptions.math.CardinalityException

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    NonSquareMatrixException

      public class CardinalityException
      extends MathIllegalArgumentException

  Indicates a cardinality mismatch in matrix or vector operations.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CardinalityException(int exp, int act)` Creates new cardinality violation exception.

  - ### Method Summary

    - ### Methods inherited from class org.apache.ignite.IgniteException

      `getCause, hasCause, toString`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CardinalityException

          public CardinalityException(int exp,
                                      int act)

      Creates new cardinality violation exception.
      Parameters:
        `exp` - Expected cardinality.
        `act` - Actual cardinality.

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.15.0
Release Date | : April 25 2023