From 887eebf325c776218915f27fa3163f97971264a0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 29 Oct 2016 00:02:22 +0100 Subject: Add ice_print to GitError --- gentoobrowse-api/api/impl.cpp | 11 +++++++++++ gentoobrowse-api/api/maintenance.ice | 1 + 2 files changed, 12 insertions(+) create mode 100644 gentoobrowse-api/api/impl.cpp 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 +#include + +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; -- cgit v1.2.3