diff options
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) { |