first commit 1437_31102025
This commit is contained in:
22
include/robot/exception.h
Normal file
22
include/robot/exception.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*********************************************************************
|
||||
* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user