summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-12-30 01:18:11 +0000
committerMichi Henning <michi@zeroc.com>2002-12-30 01:18:11 +0000
commitc48b039ca253c2f2afc60738e74a52b23e9ee102 (patch)
tree07e0cbc87615cc32e59c7476aa2b797d6882f790 /cpp/src
parentstarted AMD (diff)
downloadice-c48b039ca253c2f2afc60738e74a52b23e9ee102.tar.bz2
ice-c48b039ca253c2f2afc60738e74a52b23e9ee102.tar.xz
ice-c48b039ca253c2f2afc60738e74a52b23e9ee102.zip
Added TwowayOnlyException (the exception and ice_print only -- the
exception is thrown yet -- Marc will update the code for that).
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Exception.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index 93861ac9b9e..4123b46dd22 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -424,3 +424,10 @@ Ice::NotRegisteredException::ice_print(ostream& out) const
Exception::ice_print(out);
out << ":\n no " << kindOfObject << " registered under ID `" << id << "'";
}
+
+void
+Ice::TwowayOnlyException::ice_print(ostream& out) const
+{
+ Exception::ice_print(out);
+ out << ":\n operation `" << operation << "' can only be invoked as a twoway request";
+}