diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-11-25 22:23:00 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-11-25 22:23:00 +0000 |
commit | e0ac69f7b067964774a5d3d241bc5496564e37ba (patch) | |
tree | 0db95ebe5daf6d694b80060c79c0cfd6436bfffb /cpp/src/IceUtil/Exception.cpp | |
parent | more detail for CompressionException (diff) | |
download | ice-e0ac69f7b067964774a5d3d241bc5496564e37ba.tar.bz2 ice-e0ac69f7b067964774a5d3d241bc5496564e37ba.tar.xz ice-e0ac69f7b067964774a5d3d241bc5496564e37ba.zip |
- Added Ice.NullHandleAbort property
- Fixed Locator.ice exception names to be consistent with other exceptions.
Diffstat (limited to 'cpp/src/IceUtil/Exception.cpp')
-rw-r--r-- | cpp/src/IceUtil/Exception.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp index 9a91d33ae3a..cf52e06e6a8 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/Exception.cpp @@ -16,6 +16,13 @@ using namespace std; +namespace IceUtil +{ + +bool nullHandleAbort = false; + +}; + IceUtil::Exception::Exception() : _file(0), _line(0) @@ -82,6 +89,10 @@ IceUtil::operator<<(ostream& out, const IceUtil::Exception& ex) IceUtil::NullHandleException::NullHandleException(const char* file, int line) : Exception(file, line) { + if(nullHandleAbort) + { + assert(false); + } } string |