|
CppWAMP
C++11 client library for the WAMP protocol
|
Exception thrown when a pre-condition is not met. More...
#include <cppwamp/error.hpp>
Inherits std::logic_error.
Static Public Member Functions | |
| static void | raise (const char *file, int line, const std::string &msg) |
| Throws an error::Logic exception with the given details. More... | |
| static void | check (bool condition, const char *file, int line, const std::string &msg) |
| Conditionally throws an error::Logic exception with the given details. More... | |
Exception thrown when a pre-condition is not met.
|
static |
Throws an error::Logic exception with the given details.
The CPPWAMP_LOGIC_ERROR macro should be used instead, which will conveniently fill in the file and line details.
| file | The source file where the exception is raised |
| line | The source line where the exception is raised |
| msg | Describes the cause of the exception |
|
static |
Conditionally throws an error::Logic exception with the given details.
This function is intended for asserting preconditions. The CPPWAMP_LOGIC_CHECK macro should be used instead, which will conveniently fill in the file and line details.
| condition | If `true`, then an exception will be thrown |
| file | The source file where the exception is raised |
| line | The source line where the exception is raised |
| msg | Describes the cause of the exception |