Package hlcd.exceptions
Class InvalidColIndexException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidColIndexException
- All Implemented Interfaces:
Serializable
An exception that can be thrown when an invalid column index in some
matrix is trying to be accessed.
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
Matrix,InvalidRowIndexException, Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidColIndexException(byte invalidColIndex, byte maxColValueOneBased, byte base)Constructs a new runtime exception when an invalid index of a column in a matrix is trying to be accessed. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidColIndexException
public InvalidColIndexException(byte invalidColIndex, byte maxColValueOneBased, byte base)Constructs a new runtime exception when an invalid index of a column in a matrix is trying to be accessed.- Parameters:
invalidColIndex- the invalid column matrix (zero-based)maxColValueOneBased- the largest column value that is accessible (one-based)base- the base of the code (which could \(2\) or \(4\))
-