Module com.slinky.hackmaster
Package com.slinky.hackmaster.model.cell
Class CellCluster.ClusterCloseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.slinky.hackmaster.model.cell.CellCluster.ClusterCloseException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- CellCluster
The
ClusterCloseException
class represents an exception that is
thrown when there is an issue closing a cell cluster within the hacking
mini-game grid. This exception is specifically used to indicate that a
cluster does not meet the necessary criteria to be closed, such as
mismatched opening and closing symbols or an incomplete cluster.
This class extends IllegalStateException
to signal that the
cluster is in an invalid state for the requested operation.- Since:
- 2024-07-01
- Version:
- 1.1
- Author:
- Kheagen Haskins
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClusterCloseException
(CellCluster cluster, String s) Constructs a newClusterCloseException
with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClusterCloseException
Constructs a newClusterCloseException
with the specified detail message.- Parameters:
cluster
- the cluster that failed to close.s
- the detail message explaining the reason for the exception.
-