Package hlcd.exceptions
Class InvalidRowIndexException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidRowIndexException
- All Implemented Interfaces:
Serializable
An exception that can be thrown when an invalid row 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,InvalidColIndexException, Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidRowIndexException(byte invalidRowIndex, byte maxRowValueOneBased)Constructs a new runtime exception when an invalid index of a row 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
-
InvalidRowIndexException
public InvalidRowIndexException(byte invalidRowIndex, byte maxRowValueOneBased)Constructs a new runtime exception when an invalid index of a row in a matrix is trying to be accessed.- Parameters:
invalidRowIndex- the invalid row matrix (zero-based)maxRowValueOneBased- the largest row value that is accessible (one-based)
-