Look at exceptions.hpp
in nlohmann/json for more info.
For now, we'll stick with system_errors as that's all the KVM module really throws. The
fmt
library also uses STL exceptions directly too. Plus, it's a pain to have all modules include fromvmm/types/exceptions.hpp
just so they can operate. Perhaps this will be more useful whenvirtio
gets implemented as it's presumably not just a set of ioctls.
That said, components still need to include
exceptions.hpp
forVMM_THROW
and what-not...