|
TuringSim
C++ framework to simulate abstract computing models
|
Exception thrown when a size factor is set to an illegal value. More...
#include <memory/memoryStructure.h>


Public Member Functions | |
| InvalidFactorException ()=delete | |
| An InvalidFactorException must contain an error message and the offending size factor. | |
| InvalidFactorException (std::string message, size_t sizeFactor) | |
| Build an InvalidFactorException from an error message and an offending size factor. More... | |
| size_t | getIllegalSizeFactor () const noexcept |
| Return the illegal factor. 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 | |
| size_t | sizeFactor |
| The illegal factor. | |
Exception thrown when a size factor is set to an illegal value.
Definition at line 22 of file memoryStructure.h.
|
inline |
Build an InvalidFactorException from an error message and an offending size factor.
| [in] | message | Explicative error message. |
| [in] | sizeFactor | The requested illegal sizeFactor. |
Definition at line 32 of file memoryStructure.h.
|
inlinenoexcept |
Return the illegal factor.
Definition at line 37 of file memoryStructure.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 41 of file memoryStructure.h.