Guekka / bethutil

Common utilities for working with bethesda assets (dds, nif, bsa, hkx...)
https://guekka.github.io/bethutil/
Mozilla Public License 2.0
4 stars 1 forks source link

Unify error handling #7

Open Guekka opened 1 year ago

Guekka commented 1 year ago

Most components use expected for error handling: nif, tex... But common sometimes uses exceptions, in filesystem and strings And bsa is the worst of all, sometimes using both or just raw errors (beware of the dreaded std::vector<std::pair<Path, std::string>>. Can you guess that represents an error?)

Guekka commented 2 months ago

With the previous work, the situation has already gotten better. But we need more work. In particular, making all functions noexcept and replacing bool returns with proper errors