coral A C++ library for distributed co-simulation
coral::error::PreconditionViolation Class Reference

An exception which is used to signal that one or more of a function's preconditions were not met. More...

#include "coral/error.hpp"

Inheritance diagram for coral::error::PreconditionViolation:

Detailed Description

An exception which is used to signal that one or more of a function's preconditions were not met.

Note that std::invalid_argument should be used to signal problems with function arguments, even though such could also, strictly speaking, be classified as precondition violations.