aboutsummaryrefslogtreecommitdiff
path: root/common/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/error.h')
-rw-r--r--common/error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/error.h b/common/error.h
index 30142926ca..c4d383e508 100644
--- a/common/error.h
+++ b/common/error.h
@@ -66,6 +66,14 @@ enum Error {
kUnknownError ///< Catch-all error, used if no other error code matches
};
+/**
+ * Maps an error code to equivalent string description.
+ *
+ * @param error error code to be converted
+ * @return a pointer to string description of the error
+ */
+const char *errorToString(Error error);
+
} // End of namespace Common
#endif //COMMON_ERROR_H