/********************************************************************* * Minimal exception type compatible with existing code. *********************************************************************/ #ifndef ROBOT_MINIMAL_EXCEPTION_H #define ROBOT_MINIMAL_EXCEPTION_H #include #include namespace robot { class Exception : public std::runtime_error { public: explicit Exception(const std::string& what_arg) : std::runtime_error(what_arg) {} }; } // namespace robot #endif // ROBOT_MINIMAL_EXCEPTION_H