aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/error.hh
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-11 18:03:22 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-11 18:03:22 +0100
commit793b9b910a8f3c010a55433188e4b63414cbb314 (patch)
treeca5f8621273bc4b55f7e584a39529954a84da14c /include/axolotl/error.hh
parentbcb05d1a9982c0a22e41ecfa6f9aba212587c782 (diff)
Start writing the interfaces for session and the account objects
Diffstat (limited to 'include/axolotl/error.hh')
-rw-r--r--include/axolotl/error.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/axolotl/error.hh b/include/axolotl/error.hh
new file mode 100644
index 0000000..712b9eb
--- /dev/null
+++ b/include/axolotl/error.hh
@@ -0,0 +1,17 @@
+#ifndef ERROR_HH_
+#define ERROR_HH_
+
+namespace axolotl {
+
+enum struct ErrorCode {
+ SUCCESS = 0, /*!< There wasn't an error */
+ NOT_ENOUGH_RANDOM = 1, /*!< Not enough entropy was supplied */
+ OUTPUT_BUFFER_TOO_SMALL = 2, /*!< Supplied output buffer is too small */
+ BAD_MESSAGE_VERSION = 3, /*!< The message version is unsupported */
+ BAD_MESSAGE_FORMAT = 4, /*!< The message couldn't be decoded */
+ BAD_MESSAGE_MAC = 5, /*!< The message couldn't be decrypted */
+};
+
+} // namespace axolotl
+
+#endif /* ERROR_HH_ */