summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-13 14:38:52 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-13 14:38:52 +0000
commitdbb73b11c029b64880c4a1f8bc2bc5eac208869e (patch)
tree771e1eb5328075ac323cf70bc6cf453626f86c26 /cpp/src/Ice/Exception.cpp
parenterror # in exceptions is now properly set (diff)
downloadice-dbb73b11c029b64880c4a1f8bc2bc5eac208869e.tar.bz2
ice-dbb73b11c029b64880c4a1f8bc2bc5eac208869e.tar.xz
ice-dbb73b11c029b64880c4a1f8bc2bc5eac208869e.zip
more exception cleanup
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp52
1 files changed, 2 insertions, 50 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index f9e966495ab..19b2102d4dd 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -32,30 +32,6 @@ Ice::LocalException::operator=(const LocalException& ex)
return *this;
}
-string
-Ice::LocalException::_name() const
-{
- return "Ice::LocalException";
-}
-
-ostream&
-Ice::LocalException::_print(ostream& out) const
-{
- return IceUtil::printException(out, *this);
-}
-
-Exception*
-Ice::LocalException::_clone() const
-{
- return new LocalException(*this);
-}
-
-void
-Ice::LocalException::_throw() const
-{
- throw *this;
-}
-
Ice::UserException::UserException()
{
}
@@ -72,39 +48,15 @@ Ice::UserException::operator=(const UserException& ex)
return *this;
}
-string
-Ice::UserException::_name() const
-{
- return "Ice::UserException";
-}
-
-ostream&
-Ice::UserException::_print(ostream& out) const
-{
- return IceUtil::printException(out, *this);
-}
-
-Exception*
-Ice::UserException::_clone() const
-{
- return new UserException(*this);
-}
-
-void
-Ice::UserException::_throw() const
-{
- throw *this;
-}
-
ostream&
-IceUtil::printException(ostream& out, const LocalException& ex)
+IceUtil::printException(ostream& out, const UnknownLocalException& ex)
{
IceUtil::printException(out, static_cast<const IceUtil::Exception&>(ex));
return out << ": unknown local exception";
}
ostream&
-IceUtil::printException(ostream& out, const UserException& ex)
+IceUtil::printException(ostream& out, const UnknownUserException& ex)
{
IceUtil::printException(out, static_cast<const IceUtil::Exception&>(ex));
return out << ": unknown user exception";