23 lines
532 B
C++
23 lines
532 B
C++
/*********************************************************************
|
|
* Minimal exception type compatible with existing code.
|
|
*********************************************************************/
|
|
#ifndef ROBOT_MINIMAL_EXCEPTION_H
|
|
#define ROBOT_MINIMAL_EXCEPTION_H
|
|
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
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
|
|
|
|
|