diff options
author | Michi Henning <michi@zeroc.com> | 2006-02-21 02:17:16 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-02-21 02:17:16 +0000 |
commit | 2bd1d1b7c21b50d1f643962bcd1c44fb94dee44f (patch) | |
tree | 78fa7550ce16ede027333c9e12b2b571d5fbf154 /cppe/src/IceE/ExceptionBase.cpp | |
parent | Fixed Equals() so it can't throw an exception. (diff) | |
download | ice-2bd1d1b7c21b50d1f643962bcd1c44fb94dee44f.tar.bz2 ice-2bd1d1b7c21b50d1f643962bcd1c44fb94dee44f.tar.xz ice-2bd1d1b7c21b50d1f643962bcd1c44fb94dee44f.zip |
Bug 867.
Diffstat (limited to 'cppe/src/IceE/ExceptionBase.cpp')
-rwxr-xr-x | cppe/src/IceE/ExceptionBase.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cppe/src/IceE/ExceptionBase.cpp b/cppe/src/IceE/ExceptionBase.cpp index f924aca51ac..9a5263a9a50 100755 --- a/cppe/src/IceE/ExceptionBase.cpp +++ b/cppe/src/IceE/ExceptionBase.cpp @@ -114,3 +114,34 @@ IceUtil::NullHandleException::ice_throw() const { throw *this; } + +IceUtil::IllegalArgumentException::IllegalArgumentException(const char* file, int line) : + Exception(file, line) +{ +} + +IceUtil::IllegalArgumentException::IllegalArgumentException(const char* file, int line, const string& r) : + Exception(file, line), + reason(r) +{ +} + +const char* IceUtil::IllegalArgumentException::_name = "IceUtil::IllegalArgumentException"; + +const string +IceUtil::IllegalArgumentException::ice_name() const +{ + return _name; +} + +IceUtil::Exception* +IceUtil::IllegalArgumentException::ice_clone() const +{ + return new IllegalArgumentException(*this); +} + +void +IceUtil::IllegalArgumentException::ice_throw() const +{ + throw *this; +} |