Package hlcd.exceptions
Class InvalidMatricesBases
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidMatricesBases
- All Implemented Interfaces:
Serializable
An exception that can be thrown when the bases of two matrices don't match.
This is checked when \(G\) is multiplied by \(G^T\) or \(\overline{G}^T\). On
average, this exception should not be encountered.
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
Matrix, Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidMatricesBases(byte leftMatrixBase, byte rightMatrixBase)Constructs a new runtime exception when an invalid digit is used in the code. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidMatricesBases
public InvalidMatricesBases(byte leftMatrixBase, byte rightMatrixBase)Constructs a new runtime exception when an invalid digit is used in the code.- Parameters:
leftMatrixBase- the base of the left-hand-side matrixrightMatrixBase- the base of the right-hand-side matrix
-