Пример #1
0
        internal static Exception GetIsolatedStorageException(string exceptionMsg, Exception rootCause)
        {
            IsolatedStorageException e = new IsolatedStorageException(exceptionMsg, rootCause);

            e._underlyingException = rootCause;
            return(e);
        }
Пример #2
0
 internal static Exception GetIsolatedStorageException(string exceptionMsg, Exception rootCause)
 {
     IsolatedStorageException e = new IsolatedStorageException(exceptionMsg, rootCause);
     e._underlyingException = rootCause;
     return e;
 }
        internal static Exception GetIsolatedStorageException(string exceptionKey, Exception rootCause) {
#if DEBUG
            IsolatedStorageException e = new IsolatedStorageException(Environment.GetResourceString(exceptionKey), rootCause);
#else
            Exception innerException = null;

#if !FEATURE_LEGACYNETCF
            if (IsolatedStorageSecurityState.CreateStateToCheckSetInnerException().IsStateAvailable()) {
                innerException = rootCause;
            }
#endif

            IsolatedStorageException e = new IsolatedStorageException(Environment.GetResourceString(exceptionKey), innerException);
#endif
            e.m_UnderlyingException = rootCause;

            return e;
        }