Biorbd
Error.h
1 #ifndef BIORBD_UTILS_ERROR_H
2 #define BIORBD_UTILS_ERROR_H
3 
4 #include "biorbdConfig.h"
5 #include "Utils/String.h"
6 
7 namespace biorbd {
8 namespace utils {
9 class String;
10 
14 class BIORBD_API Error
15 {
16 public:
21  [[noreturn]] static void raise(
22  const biorbd::utils::String &message);
23 
29  static void check(
30  bool cond,
31  const biorbd::utils::String &message);
32 
38  static void warning(
39  bool cond,
40  const biorbd::utils::String &message);
41 };
42 
43 }}
44 
45 #endif // BIORBD_UTILS_ERROR_H
46 
47 
biorbd::utils::Error
Raise error or warning while biorbding.
Definition: Error.h:15
biorbd::utils::String
Wrapper around the std::string class with augmented functionality.
Definition: String.h:17