summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2022-04-28 22:39:22 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2022-04-30 10:40:45 +0300
commit3ac3ce78285cd2d629c1485241b5aa0db8d8df0f (patch)
tree5f70ced794d804f727b89e9e1e9a4e5423efc95e
parenta8a3a0c3bf183c5b5d447ee4ce637f763401548e (diff)
error: Add some more error codes
-rw-r--r--lib/utils/mu-error.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/utils/mu-error.hh b/lib/utils/mu-error.hh
index 4ed0e9b..b12b07b 100644
--- a/lib/utils/mu-error.hh
+++ b/lib/utils/mu-error.hh
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 2019-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
+** Copyright (C) 2019-2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
@@ -21,7 +21,7 @@
#define MU_ERROR_HH__
#include <stdexcept>
-#include "mu-utils.hh"
+#include "mu-utils-format.hh"
#include "mu-util.h"
#include <glib.h>
@@ -30,6 +30,7 @@ namespace Mu {
struct Error final : public std::exception {
enum struct Code {
AccessDenied = 100, // don't overlap with MuError
+ AssertionFailure,
Command,
Crypto,
File,
@@ -37,14 +38,16 @@ struct Error final : public std::exception {
Internal,
InvalidArgument,
Message,
+ NoMatches,
NotFound,
Parsing,
+ Play,
Query,
SchemaMismatch,
Store,
+ UnverifiedSignature,
User,
- Play,
- AssertionFailure
+ Xapian,
};
/**