Package hlcd.exceptions
Class InvalidCodeParameters
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidCodeParameters
- All Implemented Interfaces:
Serializable
An exception that can be thrown when an invalid code parameters (\(n\)
and/or \(k\)) of a code \(\mathsf{C}\) is trying to be used. An invalid
combination could be when either \(k\) or \(n\) are non-positive integers or
when \(k\) is larger than \(n\).
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
Code, Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidCodeParameters(byte n, byte k)Constructs a new runtime exception with the specified code parameters \(n\) and \(k\). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidCodeParameters
public InvalidCodeParameters(byte n, byte k)Constructs a new runtime exception with the specified code parameters \(n\) and \(k\).- Parameters:
n- the length \(n\) of a code \(\mathsf{C}\)k- the dimension \(k\) of a code \(\mathsf{C}\)
-