FrameExceptions.hpp
Go to the documentation of this file.
1 /*
2  * RDL - Robot Dynamics Library
3  * Copyright (c) 2017 Jordan Lack <jlack1987@gmail.com>
4  *
5  * Licensed under the zlib license. See LICENSE for more details.
6  */
7 
8 #ifndef __RDL_FRAME_EXCEPTIONS__
9 #define __RDL_FRAME_EXCEPTIONS__
10 
20 #include <stdexcept>
21 #include <exception>
22 
23 namespace RobotDynamics
24 {
30 class ReferenceFrameException : public std::exception
31 {
32  public:
37  explicit ReferenceFrameException(const std::string& err) : msg(err)
38  {
39  }
40 
41  virtual const char* what() const throw()
42  {
43  return msg.c_str();
44  }
45 
46  std::string msg ;
47 };
48 } // namespace RobotDynamics
49 #endif // ifndef __RDL_FRAME_EXCEPTIONS__
ReferenceFrameException(const std::string &err)
Constructor.
A custom exception for frame operations.
virtual const char * what() const
Namespace for all structures of the RobotDynamics library.
Definition: Body.h:21


rdl_dynamics
Author(s):
autogenerated on Tue Apr 20 2021 02:25:27