Package hlcd.exceptions
Class InvalidMinimumDistanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidMinimumDistanceException
- All Implemented Interfaces:
Serializable
An exception that can be thrown when the minimum distance specified is
less than \(3\). Note that this program doesn't support codes of minimum
distance less than \(3\).
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
Matrix,InvalidColIndexException,Functions.isValidMinimumDistance(byte), Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidMinimumDistanceException(byte invalidMinimumDistance)Constructs a new runtime exception when an invalid minimum distance is specified for a 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
-
InvalidMinimumDistanceException
public InvalidMinimumDistanceException(byte invalidMinimumDistance)Constructs a new runtime exception when an invalid minimum distance is specified for a code.- Parameters:
invalidMinimumDistance- the invalid minimum distance- See Also:
Functions.isValidMinimumDistance(byte)
-