scenario_simulator_v2 C++ API
Classes | Namespaces | Macros
exception.hpp File Reference
#include <scenario_simulator_exception/concatenate.hpp>
#include <stdexcept>
#include <utility>
Include dependency graph for exception.hpp:

Go to the source code of this file.

Classes

struct  common::scenario_simulator_exception::Error
 
struct  common::scenario_simulator_exception::AutowareError
 Autoware encountered some problem that led to a simulation failure. More...
 
struct  common::scenario_simulator_exception::SemanticError
 Although there were no syntactic errors in the description of the scenario, differences in meaning and inconsistencies were found. More...
 
struct  common::scenario_simulator_exception::SimulationError
 A problem occurred that interfered with the continuation of the simulation. More...
 
struct  common::scenario_simulator_exception::SpecificationViolation
 When simulator detects specification violation in simulation. More...
 
struct  common::scenario_simulator_exception::SyntaxError
 There is a syntactic error in the description of the scenario. Or you are using a feature that is not yet supported by our implementation. More...
 

Namespaces

 common
 
 common::scenario_simulator_exception
 

Macros

#define DEFINE_ERROR_CATEGORY(TYPENAME)
 
#define THROW_ERROR(TYPENAME, ...)   throw TYPENAME(__FILE__, ":", __LINE__, ": ", __VA_ARGS__)
 
#define THROW_SEMANTIC_ERROR(...)   /* */ THROW_ERROR(common::SemanticError, __VA_ARGS__)
 
#define THROW_SIMULATION_ERROR(...)   /* */ THROW_ERROR(common::SimulationError, __VA_ARGS__)
 
#define THROW_SPECIFICATION_VIOLATION(...)   THROW_ERROR(common::SpecificationViolation, __VA_ARGS__)
 
#define THROW_SYNTAX_ERROR(...)   /* */ THROW_ERROR(common::SyntaxError, __VA_ARGS__)
 

Macro Definition Documentation

◆ DEFINE_ERROR_CATEGORY

#define DEFINE_ERROR_CATEGORY (   TYPENAME)
Value:
struct TYPENAME : public Error \
{ \
using Error::Error; \
}

◆ THROW_ERROR

#define THROW_ERROR (   TYPENAME,
  ... 
)    throw TYPENAME(__FILE__, ":", __LINE__, ": ", __VA_ARGS__)

◆ THROW_SEMANTIC_ERROR

#define THROW_SEMANTIC_ERROR (   ...)    /* */ THROW_ERROR(common::SemanticError, __VA_ARGS__)

◆ THROW_SIMULATION_ERROR

#define THROW_SIMULATION_ERROR (   ...)    /* */ THROW_ERROR(common::SimulationError, __VA_ARGS__)

◆ THROW_SPECIFICATION_VIOLATION

#define THROW_SPECIFICATION_VIOLATION (   ...)    THROW_ERROR(common::SpecificationViolation, __VA_ARGS__)

◆ THROW_SYNTAX_ERROR

#define THROW_SYNTAX_ERROR (   ...)    /* */ THROW_ERROR(common::SyntaxError, __VA_ARGS__)