4#include "pybind11/pybind11.h"
20 auto baseException = py::register_exception<uhal::exception::exception>(aModule,
"exception", PyExc_Exception);
23 py::register_exception<uhal::exception::NonValidatedMemory> ( aModule,
"NonValidatedMemory", baseException );
24 py::register_exception<uhal::exception::BulkTransferRequestedTooLarge> ( aModule,
"BulkTransferRequestedTooLarge", baseException );
25 py::register_exception<uhal::exception::WriteAccessDenied> ( aModule,
"WriteAccessDenied", baseException );
26 py::register_exception<uhal::exception::ReadAccessDenied> ( aModule,
"ReadAccessDenied", baseException );
27 py::register_exception<uhal::exception::BitsSetWhichAreForbiddenByBitMask> ( aModule,
"BitsSetWhichAreForbiddenByBitMask", baseException );
28 py::register_exception<uhal::exception::ValidationError> ( aModule,
"ValidationError", baseException );
29 py::register_exception<uhal::exception::TcpTimeout> ( aModule,
"TcpTimeout", baseException );
30 py::register_exception<uhal::exception::UdpTimeout> ( aModule,
"UdpTimeout", baseException );
31 py::register_exception<pycohal::PycohalLogLevelEnumError> ( aModule,
"PycohalLogLevelEnumError", baseException );
void wrap_exceptions(pybind11::module_ &)
Wraps all uHAL exceptions (i.e. creates corresponding Python classes, and regsiters appropriate excep...