Package hlcd.exceptions
Class InvalidBaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidBaseException
- All Implemented Interfaces:
Serializable
An exception that can be thrown when an invalid base is trying to be used.
Currently, a valid base is either \(2\) or \(4\). The program is
designed to allow the inclusion of other bases.
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidBaseException(byte invalidBase)Constructs a new runtime exception with the specified invalid base. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidBaseException
public InvalidBaseException(byte invalidBase)Constructs a new runtime exception with the specified invalid base.- Parameters:
invalidBase- the invalid base
-