diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-06 16:21:05 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-06 16:21:05 +0000 |
commit | 71294535f4176c44c033561d407952d1d0bdd9bd (patch) | |
tree | f5067365849f934c14ff75add1e13f06384ade6e /cpp/src/Ice/LocalException.cpp | |
parent | fixes (diff) | |
download | ice-71294535f4176c44c033561d407952d1d0bdd9bd.tar.bz2 ice-71294535f4176c44c033561d407952d1d0bdd9bd.tar.xz ice-71294535f4176c44c033561d407952d1d0bdd9bd.zip |
IceUtil::Exception
Diffstat (limited to 'cpp/src/Ice/LocalException.cpp')
-rw-r--r-- | cpp/src/Ice/LocalException.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/cpp/src/Ice/LocalException.cpp b/cpp/src/Ice/LocalException.cpp index eac13a0cee2..b6f53a0b5ba 100644 --- a/cpp/src/Ice/LocalException.cpp +++ b/cpp/src/Ice/LocalException.cpp @@ -10,73 +10,11 @@ #include <Ice/LocalException.h> #include <Ice/Network.h> -#include <sstream> using namespace std; using namespace Ice; using namespace IceInternal; -Ice::LocalException::LocalException(const char* file, int line) : - _file(file), - _line(line) -{ -} - -Ice::LocalException::~LocalException() -{ -} - -Ice::LocalException::LocalException(const LocalException& ex) -{ - _line = ex._line; - _file = ex._file; -} - -LocalException& -Ice::LocalException::operator=(const LocalException& ex) -{ - if (this != &ex) - { - _line = ex._line; - _file = ex._file; - } - - return *this; -} - -string -Ice::LocalException::toString() const -{ - return debugInfo() + "unknown local exception"; -} - -LocalException* -Ice::LocalException::clone() const -{ - return new LocalException(*this); -} - -void -Ice::LocalException::raise() const -{ - throw *this; -} - -std::string -Ice::LocalException::debugInfo() const -{ - ostringstream s; - s << _file << ':' << _line << ": "; - return s.str(); -} - -ostream& -Ice::operator<<(ostream& out, const LocalException& ex) -{ - string s = ex.toString(); - return out << s; -} - Ice::UnknownException::UnknownException(const char* file, int line) : LocalException(file, line) { |