Package hlcd.exceptions
Class InvalidDigitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidDigitException
- All Implemented Interfaces:
Serializable
An exception that can be thrown when an invalid digit is being used in the
code. For example, using \(\omega_{4}\) or \(3_{10}\) in base \(2\).
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
hlcd.linearCode, Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidDigitException(byte invalidDigit, byte base)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
-
InvalidDigitException
public InvalidDigitException(byte invalidDigit, byte base)Constructs a new runtime exception when an invalid digit is used in the code.- Parameters:
invalidDigit- the invalid digitbase- the base of the code
-