diff options
author | Michi Henning <michi@zeroc.com> | 2005-07-22 00:59:35 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-07-22 00:59:35 +0000 |
commit | 74569621a77a45c4498935bca5bb2c6728fa871d (patch) | |
tree | 47e0b164eb04533f48f6121603af7b603e73bb22 /cpp/src | |
parent | more fixes for bug 421 (diff) | |
download | ice-74569621a77a45c4498935bca5bb2c6728fa871d.tar.bz2 ice-74569621a77a45c4498935bca5bb2c6728fa871d.tar.xz ice-74569621a77a45c4498935bca5bb2c6728fa871d.zip |
Fixed bug 418.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Reference.cpp | 10 | ||||
-rw-r--r-- | cpp/src/Ice/Reference.h | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp index ceb0e996961..3c714335291 100644 --- a/cpp/src/Ice/Reference.cpp +++ b/cpp/src/Ice/Reference.cpp @@ -501,9 +501,13 @@ IceInternal::FixedReference::changeTimeout(int) const void IceInternal::FixedReference::streamWrite(BasicStream* s) const { - MarshalException ex(__FILE__, __LINE__); - ex.reason = "Cannot marshal a fixed reference"; - throw ex; + throw MarshalException(__FILE__, __LINE__, "Cannot marshal a fixed reference"); +} + +string +IceInternal::FixedReference::toString() const +{ + throw MarshalException(__FILE__, __LINE__, "Cannot marshal a fixed reference"); } ConnectionIPtr diff --git a/cpp/src/Ice/Reference.h b/cpp/src/Ice/Reference.h index a37b94daf78..0ae8838dc2a 100644 --- a/cpp/src/Ice/Reference.h +++ b/cpp/src/Ice/Reference.h @@ -143,6 +143,7 @@ public: virtual ReferencePtr changeTimeout(int) const; virtual void streamWrite(BasicStream*) const; + virtual std::string toString() const; virtual Ice::ConnectionIPtr getConnection(bool&) const; |