Biorbd Release_1.13.0
Loading...
Searching...
No Matches
Error.h
1#ifndef BIORBD_UTILS_ERROR_H
2#define BIORBD_UTILS_ERROR_H
3
4#include "biorbdConfig.h"
5
6#include "Utils/String.h"
7
8namespace BIORBD_NAMESPACE {
9namespace utils {
10class String;
11
15class BIORBD_API Error {
16 public:
21 [[noreturn]] static void raise(const String &message);
22
28 static void check(bool cond, const String &message);
29
35 static void warning(bool cond, const String &message);
36};
37
38} // namespace utils
39} // namespace BIORBD_NAMESPACE
40
41#endif // BIORBD_UTILS_ERROR_H
Raise error or warning while biorbding.
Definition Error.h:15
static void raise(const String &message)
Throw an error message.
Definition Error.cpp:6
static void warning(bool cond, const String &message)
Non-blocking assert that displays the error message if false.
Definition Error.cpp:16
static void check(bool cond, const String &message)
Assert that raises the error message if false.
Definition Error.cpp:10
Wrapper around the std::string class with augmented functionality.
Definition String.h:18