Biorbd
Release_1.13.0
Toggle main menu visibility
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
8
namespace
BIORBD_NAMESPACE {
9
namespace
utils {
10
class
String
;
11
15
class
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
BIORBD_NAMESPACE::utils::Error
Raise error or warning while biorbding.
Definition
Error.h:15
BIORBD_NAMESPACE::utils::Error::raise
static void raise(const String &message)
Throw an error message.
Definition
Error.cpp:6
BIORBD_NAMESPACE::utils::Error::warning
static void warning(bool cond, const String &message)
Non-blocking assert that displays the error message if false.
Definition
Error.cpp:16
BIORBD_NAMESPACE::utils::Error::check
static void check(bool cond, const String &message)
Assert that raises the error message if false.
Definition
Error.cpp:10
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
Utils
Error.h
Generated by
1.18.0