ImFusion C++ SDK 4.5.0
ImFusion::Assert::ContractViolation Class Referencefinal

#include <ImFusion/Core/Assert.h>

Represents a violation of a contract assertion. More...

Inheritance diagram for ImFusion::Assert::ContractViolation:

Detailed Description

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
exception (T... args)
operator= (T... args)
what (T... args)
~exception (T... args)

The documentation for this class was generated from the following file:
  • ImFusion/Core/Assert.h
Search Tab / S to search, Esc to close