lib: improve error handling, cleanups

This commit is contained in:
Dirk-Jan C. Binnema
2020-10-31 09:43:52 +02:00
parent aea64c4a08
commit 69b157a346
4 changed files with 10 additions and 8 deletions

View File

@ -30,7 +30,7 @@ namespace Mu {
struct Error final: public std::exception {
enum struct Code {
AccessDenied,
AccessDenied = 100, // don't overlap with MuError
Command,
File,
Index,
@ -127,7 +127,6 @@ struct Error final: public std::exception {
private:
const Code code_;
std::string what_;
};