summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/api/impl.cpp11
-rw-r--r--gentoobrowse-api/api/maintenance.ice1
2 files changed, 12 insertions, 0 deletions
diff --git a/gentoobrowse-api/api/impl.cpp b/gentoobrowse-api/api/impl.cpp
new file mode 100644
index 0000000..1da1dfc
--- /dev/null
+++ b/gentoobrowse-api/api/impl.cpp
@@ -0,0 +1,11 @@
+#include <maintenance.h>
+#include <buffer.h>
+
+namespace Gentoo {
+ void GitError::ice_print(std::ostream & s) const
+ {
+ s << stringbf("Git Error: %s (code %d, class %d)",
+ message, errorCode, errorClass);
+ }
+}
+
diff --git a/gentoobrowse-api/api/maintenance.ice b/gentoobrowse-api/api/maintenance.ice
index a66b1d0..013acb3 100644
--- a/gentoobrowse-api/api/maintenance.ice
+++ b/gentoobrowse-api/api/maintenance.ice
@@ -1,4 +1,5 @@
module Gentoo {
+ ["cpp:ice_print"]
exception GitError {
int errorCode;
int errorClass;