18 #ifndef HPP_CORE_PROJECTION_ERROR_HH 19 #define HPP_CORE_PROJECTION_ERROR_HH 33 : std::exception (other), msg_ (other.msg_) {}
37 #if __cplusplus >= 201103L 38 virtual const char* what ()
const noexcept {
return msg_.c_str (); };
40 virtual const char*
what ()
const throw() {
return msg_.c_str (); };
59 virtual std::ostream&
print (std::ostream& os)
const 61 os <<
"Projection error";
63 os <<
" (" << msg <<
')';
73 #endif // HPP_CORE_PROJECTION_ERROR_HH Definition: validation-report.hh:36
virtual ~ProjectionError()
Definition: projection-error.hh:57
projection_error(const projection_error &other)
Definition: projection-error.hh:32
projection_error()
Definition: projection-error.hh:28
Definition: projection-error.hh:26
virtual const char * what() const
Definition: projection-error.hh:40
ProjectionError(const std::string &msg="")
Definition: projection-error.hh:53
projection_error(const std::string &msg)
Definition: projection-error.hh:30
Handles projection errors when evaluating a path.
Definition: projection-error.hh:50
virtual std::ostream & print(std::ostream &os) const
Write report in a stream.
Definition: projection-error.hh:59
std::string msg
Definition: projection-error.hh:67
virtual ~projection_error() _GLIBCXX_USE_NOEXCEPT
Definition: projection-error.hh:35