12 using std::runtime_error::runtime_error;
25 :
LaneletError(combineErrors(messages)), errorMessages(std::move(messages)) {}
31 for (
const auto& message : m) {
43 using LaneletError::LaneletError;
50 using LaneletError::LaneletError;
57 using LaneletError::LaneletError;
64 using LaneletError::LaneletError;
72 using LaneletError::LaneletError;
81 using LaneletError::LaneletError;
Thrown when multiple errors occur at the same time.
Thrown when a geometric operation is not valid.
Thrown when an element is not part of the map.
Thrown when the state of a lanelet object is invalid E.g. when an linestring has no points or member ...
LaneletMultiError(const std::string &err)
LaneletMultiError(ErrorMessages messages={})
SharedPtrs in lanelet2 must never point to null. If this is violated, this exception is thrown (usual...
std::vector< std::string > ErrorMessages
const ErrorMessages errorMessages
The individual error strings.
Generic lanelet error class. All errors lanelet2 will throw derive from this type.
Thrown when an attribute has been queried that does not exist.
static std::string combineErrors(const ErrorMessages &m)