java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pauware.pauware_engine.Exceptions.State_exception
com.pauware.pauware_engine.Exceptions.State_based_exception
- All Implemented Interfaces:
java.io.Serializable
public class State_based_exception extends State_exception
This class is concerned with abnormal state configuration/structuring
exceptions. It is typically thrown when states are linked together with
null
values. It is also raised when states are not properly
linked together with respect to the nesting, xor and and
operators.
Compatibility: Java 9.
- Since:
- 1.0
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description State_based_exception(java.lang.String message, AbstractState first, AbstractState second)
-
Method Summary
Modifier and Type Method Description java.lang.String
getMessage()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
State_based_exception
- Parameters:
message
- A text explaining the problem's cause.first
- The first state involved in the problem.second
- The second state involved in the problem.
-
-
Method Details
-
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- A message explaining why two states cause a problem in the configuration/layout of a state machine.
-