Biorbd
Static Public Member Functions | List of all members
biorbd::utils::Error Class Reference

Raise error or warning while biorbding. More...

#include <Error.h>

Static Public Member Functions

static void raise (const biorbd::utils::String &message)
 Throw an error message. More...
 
static void check (bool cond, const biorbd::utils::String &message)
 Assert that raises the error message if false. More...
 
static void warning (bool cond, const biorbd::utils::String &message)
 Non-blocking assert that displays the error message if false. More...
 

Detailed Description

Raise error or warning while biorbding.

Definition at line 14 of file Error.h.

Member Function Documentation

◆ check()

void biorbd::utils::Error::check ( bool  cond,
const biorbd::utils::String message 
)
static

Assert that raises the error message if false.

Parameters
condThe condition to assert
messageThe error message to display in case of failing

Definition at line 10 of file Error.cpp.

◆ raise()

void biorbd::utils::Error::raise ( const biorbd::utils::String message)
static

Throw an error message.

Parameters
messageThe error message to display

Definition at line 4 of file Error.cpp.

◆ warning()

void biorbd::utils::Error::warning ( bool  cond,
const biorbd::utils::String message 
)
static

Non-blocking assert that displays the error message if false.

Parameters
condThe condition to assert
messageThe warning message to display in case of failing

Definition at line 19 of file Error.cpp.


The documentation for this class was generated from the following files: