12 py::enum_<gridfire::expectations::EngineErrorTypes>(m,
"EngineErrorTypes")
18 py::enum_<gridfire::expectations::StaleEngineErrorTypes>(m,
"StaleEngineErrorTypes")
23 py::class_<gridfire::expectations::EngineError>(m,
"EngineError")
29 py::class_<gridfire::expectations::EngineIndexError, gridfire::expectations::EngineError>(m,
"EngineIndexError")
30 .def(py::init<int>(), py::arg(
"index"))
33 return e.
m_message +
" at index " + std::to_string(e.m_index);
37 py::class_<gridfire::expectations::StaleEngineError, gridfire::expectations::EngineError>(m,
"StaleEngineError")
38 .def(py::init<gridfire::expectations::StaleEngineErrorTypes>(), py::arg(
"stale_type"))
41 return static_cast<std::string
>(e);