|
TuringSim
C++ framework to simulate abstract computing models
|
Exception thrown when we try to apply a transition to a configuration which does not match. More...
#include <transition.h>


Public Member Functions | |
| ConfigurationDoesNotMatchException ()=delete | |
| ConfigurationDoesNotMatchException must be build with interesting data. | |
| ConfigurationDoesNotMatchException (std::string message, typename TransitionType::StateType_ preState, typename TransitionType::StorageType_ storage, typename TransitionType::ApplyHelperType &applyHelper) | |
| Builds a ConfigurationDoesNotMatchException from its components. More... | |
Protected Member Functions | |
| virtual std::string | makeFullMessage () const override |
| Build the full error message. It should be overridden by derived class that adds data to the exception. More... | |
Protected Attributes | |
| TransitionType | transition |
| the transition we apply. | |
| TransitionType::StateType_ | preState |
| the state before transition application. | |
| TransitionType::StorageType_ | storage |
| the storage before transition application. | |
| TransitionType::ApplyHelperType & | applyHelper |
the apply helper provided to apply. | |
Exception thrown when we try to apply a transition to a configuration which does not match.
This is a utility class, transition may use or not.
Definition at line 15 of file transition.h.
|
inline |
Builds a ConfigurationDoesNotMatchException from its components.
| message | an explicative message. |
| preState | the pre-state that does not match. |
| storage | the storage involved. |
| applyHelper | the helper. |
Definition at line 27 of file transition.h.
|
inlineoverrideprotectedvirtual |
Build the full error message. It should be overridden by derived class that adds data to the exception.
This is called the first time the full error is requested, the result is then memoized.
Reimplemented from TuringSim::Utils::MessageException.
Definition at line 40 of file transition.h.