diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-05-02 19:10:56 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-05-02 19:10:56 +0000 |
commit | 643bb663b019016db089777143d6ba7e8a4ff0ea (patch) | |
tree | 95aecc5b75c658ae0c8abc287434f604b9eb1bd8 /cppe/src/IceE/LocalException.cpp | |
parent | MAke wstring optional for IceE (diff) | |
download | ice-643bb663b019016db089777143d6ba7e8a4ff0ea.tar.bz2 ice-643bb663b019016db089777143d6ba7e8a4ff0ea.tar.xz ice-643bb663b019016db089777143d6ba7e8a4ff0ea.zip |
Make Wstring optional for IceE
Diffstat (limited to 'cppe/src/IceE/LocalException.cpp')
-rwxr-xr-x | cppe/src/IceE/LocalException.cpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cppe/src/IceE/LocalException.cpp b/cppe/src/IceE/LocalException.cpp index 99905f122bb..ed1b190c353 100755 --- a/cppe/src/IceE/LocalException.cpp +++ b/cppe/src/IceE/LocalException.cpp @@ -1583,6 +1583,50 @@ Ice::FixedProxyException::ice_throw() const throw *this; } +#ifdef ICEE_HAS_WSTRING +Ice::StringConversionException::StringConversionException(const char* __file, int __line) : +#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug + MarshalException(__file, __line) +#else + ::Ice::MarshalException(__file, __line) +#endif +{ +} + +Ice::StringConversionException::StringConversionException(const char* __file, int __line, const ::std::string& __reason) : +#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug + MarshalException(__file, __line, __reason) +#else + ::Ice::MarshalException(__file, __line, __reason) +#endif +{ +} + +Ice::StringConversionException::~StringConversionException() throw() +{ +} + +static const char* __Ice__StringConversionException_name = "Ice::StringConversionException"; + +::std::string +Ice::StringConversionException::ice_name() const +{ + return __Ice__StringConversionException_name; +} + +::Ice::Exception* +Ice::StringConversionException::ice_clone() const +{ + return new StringConversionException(*this); +} + +void +Ice::StringConversionException::ice_throw() const +{ + throw *this; +} +#endif + string Ice::UnknownException::toString() const { @@ -1982,3 +2026,13 @@ Ice::FixedProxyException::toString() const out += ":\nfixed proxy exception"; return out; } + +#ifdef ICEE_HAS_WSTRING +string +Ice::StringConversionException::toString() const +{ + string out = Exception::toString(); + out += ":\nprotocol error: string conversion failed"; + return out; +} +#endif |