29 #ifndef HPP_CORE_PROJECTION_ERROR_HH
30 #define HPP_CORE_PROJECTION_ERROR_HH
43 : std::exception(other), msg_(other.msg_) {}
46 virtual const char*
what() const noexcept {
return msg_.c_str(); };
60 virtual std::ostream&
print(std::ostream& os)
const {
61 os <<
"Projection error";
62 if (!msg.empty()) os <<
" (" << msg <<
')';
Definition: validation-report.hh:47
#define HPP_CORE_DLLAPI
Definition: config.hh:88
Definition: bi-rrt-planner.hh:35
Handles projection errors when evaluating a path.
Definition: projection-error.hh:55
std::string msg
Definition: projection-error.hh:66
ProjectionError(const std::string &msg="")
Definition: projection-error.hh:56
virtual std::ostream & print(std::ostream &os) const
Write report in a stream.
Definition: projection-error.hh:60
virtual ~ProjectionError()
Definition: projection-error.hh:58
Definition: projection-error.hh:37
projection_error()
Definition: projection-error.hh:38
projection_error(const std::string &msg)
Definition: projection-error.hh:40
std::string msg_
Definition: projection-error.hh:46
virtual const char * what() const noexcept
Definition: projection-error.hh:46
virtual ~projection_error() noexcept
Definition: projection-error.hh:45
projection_error(const projection_error &other)
Definition: projection-error.hh:42