27 #ifndef WFMATH_ERROR_H
28 #define WFMATH_ERROR_H
31 #include <wfmath/vector.h>
39 : v1(v1_in), v2(v2_in) {}
42 : v1(rhs.v1), v2(rhs.v2) {}
48 const char* what()
const noexcept
override {
49 return "WFMath::ColinearVectors exception. Supplied vectors are parallel.";
55 ParseError() : std::runtime_error(
"WFMath::ParseError exception.") {}
Generic library namespace.
An error thrown by certain functions when passed parallel vectors.
An error thrown by operator>>() when it fails to parse wfmath types.