Rigid Body Dynamics Library
rbdl_errors.cc
Go to the documentation of this file.
1/*
2 * RBDL - Rigid Body Dynamics Library
3 * Copyright (c) 2019 Felix Richter <judge@felixrichter.tech>
4 *
5 * Licensed under the zlib license. See LICENSE for more details.
6 */
7
8#include "rbdl/rbdl_errors.h"
9
10namespace RigidBodyDynamics
11{
12namespace Errors
13{
14
15RBDLError::RBDLError(std::string text): text(text) {}
16
17const char* RBDLError::what() const noexcept
18{
19 return text.c_str();
20}
21
23
25
27 text) {}
28
30 std::string text): RBDLError(text) {}
31
33
35 RBDLError(text) {}
36
37}
38}
Base class for all RBDL exceptions.
Definition: rbdl_errors.h:35
virtual const char * what() const noexcept
Definition: rbdl_errors.cc:17