![]() |
ImFusion C++ SDK 4.5.0
|
#include <ImFusion/Core/Assert.h>
Represents a violation of a contract assertion. More...
Represents a violation of a contract assertion.
This exception type is thrown by IMFUSION_CONTRACT_ASSERT() when a contract check fails. It carries detailed diagnostic information about the violated condition, and its source location (file, function, and line).
Contract violations represent programming errors or broken logical assumptions, not recoverable runtime conditions. They are primarily intended for enforcing correctness guarantees.
Public Member Functions | |
| const char * | what () const noexcept override |
| Returns the user-provided message/comment. | |
| std::string | location () const noexcept |
| Returns the file/function/line of the violation. | |
| Public Member Functions inherited from std::exception | |
| T | exception (T... args) |
| T | operator= (T... args) |
| T | what (T... args) |
| T | ~exception (T... args) |