diff options
author | Marc Laukien <marc@zeroc.com> | 2002-09-22 15:57:38 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-09-22 15:57:38 +0000 |
commit | dff71be00b07d293b318fede3167b3c48f2270b8 (patch) | |
tree | 35e0236914020cd396dca7675119fb3c435693ac /cpp/src/IceUtil/Exception.cpp | |
parent | thread fixes (diff) | |
download | ice-dff71be00b07d293b318fede3167b3c48f2270b8.tar.bz2 ice-dff71be00b07d293b318fede3167b3c48f2270b8.tar.xz ice-dff71be00b07d293b318fede3167b3c48f2270b8.zip |
dos2unix
Diffstat (limited to 'cpp/src/IceUtil/Exception.cpp')
-rw-r--r-- | cpp/src/IceUtil/Exception.cpp | 198 |
1 files changed, 99 insertions, 99 deletions
diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp index f239e8ba53b..18c25824027 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/Exception.cpp @@ -1,99 +1,99 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// Mutable Realms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#include <IceUtil/Exception.h>
-
-using namespace std;
-
-IceUtil::Exception::Exception() :
- _file(0),
- _line(0)
-{
-}
-
-IceUtil::Exception::Exception(const char* file, int line) :
- _file(file),
- _line(line)
-{
-}
-
-IceUtil::Exception::~Exception()
-{
-}
-
-string
-IceUtil::Exception::ice_name() const
-{
- return "IceUtil::Exception";
-}
-
-void
-IceUtil::Exception::ice_print(ostream& out) const
-{
- if(_file && _line > 0)
- {
- out << _file << ':' << _line << ": ";
- }
- out << ice_name();
-}
-
-IceUtil::Exception*
-IceUtil::Exception::ice_clone() const
-{
- return new Exception(*this);
-}
-
-void
-IceUtil::Exception::ice_throw() const
-{
- throw *this;
-}
-
-const char*
-IceUtil::Exception::ice_file() const
-{
- return _file;
-}
-
-int
-IceUtil::Exception::ice_line() const
-{
- return _line;
-}
-
-ostream&
-IceUtil::operator<<(ostream& out, const IceUtil::Exception& ex)
-{
- ex.ice_print(out);
- return out;
-}
-
-IceUtil::NullHandleException::NullHandleException(const char* file, int line) :
- Exception(file, line)
-{
-}
-
-string
-IceUtil::NullHandleException::ice_name() const
-{
- return "IceUtil::NullHandleException";
-}
-
-IceUtil::Exception*
-IceUtil::NullHandleException::ice_clone() const
-{
- return new NullHandleException(*this);
-}
-
-void
-IceUtil::NullHandleException::ice_throw() const
-{
- throw *this;
-}
+// ********************************************************************** +// +// Copyright (c) 2001 +// Mutable Realms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <IceUtil/Exception.h> + +using namespace std; + +IceUtil::Exception::Exception() : + _file(0), + _line(0) +{ +} + +IceUtil::Exception::Exception(const char* file, int line) : + _file(file), + _line(line) +{ +} + +IceUtil::Exception::~Exception() +{ +} + +string +IceUtil::Exception::ice_name() const +{ + return "IceUtil::Exception"; +} + +void +IceUtil::Exception::ice_print(ostream& out) const +{ + if(_file && _line > 0) + { + out << _file << ':' << _line << ": "; + } + out << ice_name(); +} + +IceUtil::Exception* +IceUtil::Exception::ice_clone() const +{ + return new Exception(*this); +} + +void +IceUtil::Exception::ice_throw() const +{ + throw *this; +} + +const char* +IceUtil::Exception::ice_file() const +{ + return _file; +} + +int +IceUtil::Exception::ice_line() const +{ + return _line; +} + +ostream& +IceUtil::operator<<(ostream& out, const IceUtil::Exception& ex) +{ + ex.ice_print(out); + return out; +} + +IceUtil::NullHandleException::NullHandleException(const char* file, int line) : + Exception(file, line) +{ +} + +string +IceUtil::NullHandleException::ice_name() const +{ + return "IceUtil::NullHandleException"; +} + +IceUtil::Exception* +IceUtil::NullHandleException::ice_clone() const +{ + return new NullHandleException(*this); +} + +void +IceUtil::NullHandleException::ice_throw() const +{ + throw *this; +} |