From 267550c99b669ba1799c0b8cdef3730f578365e5 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 4 Jan 2013 20:50:05 +0100 Subject: Fixed (ICE-5058) - WinRT port Platform::AccessDeniedException --- cpp/src/Ice/Exception.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'cpp/src/Ice/Exception.cpp') 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(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(error).ToString()->Data()); + } #else return IceUtilInternal::errorToString(error); #endif -- cgit v1.2.3