rcpputils  master
C++ API providing common utilities and data structures.
Classes | Namespaces | Functions
asserts.hpp File Reference

Assertion-like exceptions for halting tests. More...

#include <exception>
#include <stdexcept>
#include <string>
#include "rcpputils/visibility_control.hpp"
Include dependency graph for asserts.hpp:

Go to the source code of this file.

Classes

class  rcpputils::AssertionException
 An assertion-like exception for halting tests if conditions are not met. More...
 
class  rcpputils::IllegalStateException
 An exception to be thrown when a state check fails. More...
 

Namespaces

 rcpputils
 

Functions

void rcpputils::require_true (bool condition, const std::string &msg="invalid argument passed")
 Check that an argument condition passes. More...
 
void rcpputils::check_true (bool condition, const std::string &msg="check reported invalid state")
 Check that a state condition passes. More...
 
void rcpputils::assert_true (bool condition, const std::string &msg="assertion failed")
 Assert that a condition passes. More...
 

Detailed Description

Assertion-like exceptions for halting tests.