Mercurial > silverbladetech
comparison 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 |
comparison
equal
deleted
inserted
replaced
14:741981715d94 | 15:060f02cd4591 |
---|---|
1 using System; | |
2 | |
3 namespace MetroWpf | |
4 { | |
5 /// <summary> | |
6 /// Generic exception for combining several other exceptions | |
7 /// </summary> | |
8 public class CombinedException : Exception | |
9 { | |
10 #region · Properties · | |
11 | |
12 /// <summary> | |
13 /// Gets the inner exceptions. | |
14 /// </summary> | |
15 /// <value>The inner exceptions.</value> | |
16 public Exception[] InnerExceptions | |
17 { | |
18 get; | |
19 protected set; | |
20 } | |
21 | |
22 #endregion | |
23 | |
24 #region · Constructors · | |
25 | |
26 /// <summary> | |
27 /// Initializes a new instance of the <see cref="CombinedException"/> class. | |
28 /// </summary> | |
29 /// <param name="message">The message.</param> | |
30 /// <param name="innerExceptions">The inner exceptions.</param> | |
31 public CombinedException(string message, Exception[] innerExceptions) | |
32 : base(message) | |
33 { | |
34 this.InnerExceptions = innerExceptions; | |
35 } | |
36 | |
37 #endregion | |
38 } | |
39 } |