summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-01-04 20:50:05 +0100
committerJose <jose@zeroc.com>2013-01-04 20:50:05 +0100
commit267550c99b669ba1799c0b8cdef3730f578365e5 (patch)
tree82aabc0f3c662ec52f3ce6dd4ad93f9b89d49dd5 /cpp/src/Ice/Exception.cpp
parentUpdate WinRT install headers (diff)
downloadice-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.cpp14
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