15 #ifndef OPENSCENARIO_INTERPRETER__ERROR_HPP_
16 #define OPENSCENARIO_INTERPRETER__ERROR_HPP_
25 std::cout << "\x1b[33m" __FILE__ "\x1b[31m:\x1b[36m" << __LINE__ << "\x1b[0m" << std::endl
27 #define PRINT(...) std::cout << #__VA_ARGS__ " = " << std::boolalpha << (__VA_ARGS__) << std::endl
37 #define INVALID_NUMERIC_LITERAL_SPECIFIED(VALUE) \
39 "Given value ", std::quoted(VALUE), " is not an external representation of type ", \
40 demangle(typeid(*this)))
42 #define UNSUPPORTED_ENUMERATION_VALUE_SPECIFIED(TYPE, VALUE) \
44 "Given value ", std::quoted(VALUE), \
45 " is valid OpenSCENARIO value of type " #TYPE ", but it is not supported yet")
47 #define UNEXPECTED_ENUMERATION_VALUE_SPECIFIED(TYPE, VALUE) \
48 SyntaxError("Unexpected value ", std::quoted(VALUE), " of type " #TYPE " was specified")
50 #define UNEXPECTED_ENUMERATION_VALUE_ASSIGNED(TYPE, VALUE) \
52 "Unexpected value ", static_cast<TYPE::value_type>(VALUE), " was assigned to type " #TYPE)
54 #define UNSUPPORTED_ELEMENT_SPECIFIED(ELEMENT) \
56 "Given class ", ELEMENT, " is valid OpenSCENARIO element of class ", demangle(typeid(*this)), \
57 ", but is not supported yet")
59 #define UNSUPPORTED_CONVERSION_DETECTED(FROM, TO) \
60 SyntaxError("Converting " #FROM " to " #TO \
61 ". This is valid in OpenSCENARIO standard, but is not yet supported")
63 #define UNSUPPORTED_SETTING_DETECTED(ACTION_OR_CONDITION, ELEMENT) \
64 SyntaxError(#ACTION_OR_CONDITION " does not yet support ", ELEMENT)
Definition: escape_sequence.hpp:22
Autoware encountered some problem that led to a simulation failure.
Definition: exception.hpp:41
Definition: exception.hpp:27
Although there were no syntactic errors in the description of the scenario, differences in meaning an...
Definition: exception.hpp:44
A problem occurred that interfered with the continuation of the simulation.
Definition: exception.hpp:47
There is a syntactic error in the description of the scenario. Or you are using a feature that is not...
Definition: exception.hpp:53