diff options
author | Jose <jose@zeroc.com> | 2013-01-04 20:50:05 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-01-04 20:50:05 +0100 |
commit | 267550c99b669ba1799c0b8cdef3730f578365e5 (patch) | |
tree | 82aabc0f3c662ec52f3ce6dd4ad93f9b89d49dd5 /cpp/src/Ice/Exception.cpp | |
parent | Update WinRT install headers (diff) | |
download | ice-267550c99b669ba1799c0b8cdef3730f578365e5.tar.bz2 ice-267550c99b669ba1799c0b8cdef3730f578365e5.tar.xz ice-267550c99b669ba1799c0b8cdef3730f578365e5.zip |
Fixed (ICE-5058) - WinRT port Platform::AccessDeniedException
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index 177eb58e8a0..f3022d2880a 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -35,8 +35,18 @@ socketErrorToString(int error) return "unknown error"; } #ifdef ICE_OS_WINRT - return IceUtil::wstringToString( - static_cast<Windows::Networking::Sockets::SocketErrorStatus>(error).ToString()->Data()); + if(error == E_ACCESSDENIED) + { + ostringstream os; + os << "access to a resource or feature is denied, ensure that you have requested the appropriate\n"; + os << "capability and made the required declarations in the package manifest of your app."; + return os.str(); + } + else + { + return IceUtil::wstringToString( + static_cast<Windows::Networking::Sockets::SocketErrorStatus>(error).ToString()->Data()); + } #else return IceUtilInternal::errorToString(error); #endif |