29 #ifndef HPP_CORE_PROJECTION_ERROR_HH 30 #define HPP_CORE_PROJECTION_ERROR_HH 43 : std::exception(other), msg_(other.msg_) {}
47 #if __cplusplus >= 201103L 48 virtual const char* what()
const noexcept {
return msg_.c_str(); };
50 virtual const char*
what()
const throw() {
return msg_.c_str(); };
65 virtual std::ostream&
print(std::ostream& os)
const {
66 os <<
"Projection error";
67 if (!msg.empty()) os <<
" (" << msg <<
')';
77 #endif // HPP_CORE_PROJECTION_ERROR_HH Definition: validation-report.hh:47
Definition: bi-rrt-planner.hh:35
virtual ~ProjectionError()
Definition: projection-error.hh:63
projection_error(const projection_error &other)
Definition: projection-error.hh:42
projection_error()
Definition: projection-error.hh:38
Definition: projection-error.hh:37
virtual const char * what() const
Definition: projection-error.hh:50
ProjectionError(const std::string &msg="")
Definition: projection-error.hh:61
projection_error(const std::string &msg)
Definition: projection-error.hh:40
Handles projection errors when evaluating a path.
Definition: projection-error.hh:60
virtual std::ostream & print(std::ostream &os) const
Write report in a stream.
Definition: projection-error.hh:65
std::string msg
Definition: projection-error.hh:71
virtual ~projection_error() _GLIBCXX_USE_NOEXCEPT
Definition: projection-error.hh:45
#define HPP_CORE_DLLAPI
Definition: config.hh:64