示例#1
0
        /// <summary>
        /// Private static helper method to publish the exception information to the default publisher.
        /// </summary>
        /// <param name="exception">The exception object whose information should be published.</param>
        /// <param name="additionalInfo">A collection of additional data that should be published along with the exception information.</param>
        internal static void PublishInternalException(Exception exception, NameValueCollection additionalInfo)
        {
            // Get the Default Publisher
            DefaultPublisher Publisher = new DefaultPublisher("Application", resourceManager.GetString("RES_EXCEPTIONMANAGER_INTERNAL_EXCEPTIONS"));

            // Publish the exception and any additional information
            Publisher.Publish(exception, additionalInfo, null);
        }
示例#2
0
        /// <summary>
        /// Private static helper method to publish the exception information to the default publisher.
        /// </summary>
        /// <param name="exception">The exception object whose information should be published.</param>
        /// <param name="additionalInfo">A collection of additional data that should be published along with the exception information.</param>
        private static void PublishToDefaultPublisher(Exception exception, NameValueCollection additionalInfo)
        {
            // Get the Default Publisher
            DefaultPublisher Publisher = new DefaultPublisher();

            // Publish the exception and any additional information
            Publisher.Publish(exception, additionalInfo, null);
        }