Exemplo n.º 1
0
            private static string FormatErrorCode(StorageException exception)
            {
                int statusCode;

                if (!exception.TryGetStatusCode(out statusCode))
                {
                    return("''");
                }

                string message = statusCode.ToString(CultureInfo.InvariantCulture);

                string errorCode = exception.GetErrorCode();

                if (errorCode != null)
                {
                    message += ": " + errorCode;
                }

                return(message);
            }