java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pauware.pauware_engine.Exceptions.State_exception
com.pauware.pauware_engine.Exceptions.Transition_based_exception
- All Implemented Interfaces:
java.io.Serializable
public class Transition_based_exception extends State_exception
This class is concerned with abnormal transition configuration/structuring
exceptions. It is for instance thrown when declared transitions are
ill-formed, e.g., a transition from a state to its direct superstate.
It is also for instance thrown when a transition conflicts with another one.
Compatibility: Java 9.
-
Constructor Summary
Constructors Constructor Description Transition_based_exception(java.lang.String message, AbstractState from, AbstractState to)
-
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
-
Transition_based_exception
- Parameters:
message
- A text explaining the problem's cause.from
- The source state of the transition causing the problem.to
- The end state of the transition causing the problem.
-
-
Method Details
-
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- A message explaining why a transition is ill-formed or is a source of conflict.
-