Replace how esplugin errors are thrown

Throw std::runtime_error for all esplugin errors except ESP_ERROR_PLUGIN_METADATA_NOT_FOUND, which causes a PluginNotLoadedError to be thrown, since LOOT needs to be able to distinguish that error.
This commit is contained in:
Oliver Hamlet
2025-06-07 17:05:48 +01:00
parent ce729f8d76
commit e90dffd518
8 changed files with 36 additions and 104 deletions
+3 -8
View File
@@ -95,13 +95,8 @@ Exceptions
.. doxygenclass:: loot::CyclicInteractionError
:members:
.. doxygenclass:: loot::UndefinedGroupError
.. doxygenclass:: loot::PluginNotLoadedError
:members:
Error Categories
================
LOOT uses error category objects to identify errors with codes that originate in
lower-level libraries.
.. doxygenfunction:: loot::esplugin_category
.. doxygenclass:: loot::UndefinedGroupError
:members: