diff MetroWpf/MetroWpf.Framework/Extensions/CombinedException.cs @ 15:060f02cd4591

Initial commit, pre airport work
author stevenh7776 stevenhollidge@hotmail.com
date Mon, 12 Mar 2012 23:05:21 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MetroWpf/MetroWpf.Framework/Extensions/CombinedException.cs	Mon Mar 12 23:05:21 2012 +0800
@@ -0,0 +1,39 @@
+using System;
+
+namespace MetroWpf
+{
+    /// <summary>
+    /// Generic exception for combining several other exceptions
+    /// </summary>
+    public class CombinedException : Exception
+    {
+        #region · Properties ·
+
+        /// <summary>
+        /// Gets the inner exceptions.
+        /// </summary>
+        /// <value>The inner exceptions.</value>
+        public Exception[] InnerExceptions
+        {
+            get;
+            protected set;
+        }
+
+        #endregion
+
+        #region · Constructors ·
+
+        /// <summary>
+        /// Initializes a new instance of the <see cref="CombinedException"/> class.
+        /// </summary>
+        /// <param name="message">The message.</param>
+        /// <param name="innerExceptions">The inner exceptions.</param>
+        public CombinedException(string message, Exception[] innerExceptions)
+            : base(message)
+        {
+            this.InnerExceptions = innerExceptions;
+        }
+
+        #endregion
+    }
+}
\ No newline at end of file