Add standard constructors to WixException
Rob Mensching committed
Mar 16, 2021 at 07:39 UTC
98162d13605a22d897a3ad1ba134024eebe9f5d4
1 file changed
+24
src/WixToolset.Data/WixException.cs
+24
@@ -10,6 +10,30 @@ namespace WixToolset.Data
10
[Serializable]
11
public class WixException : Exception
12
{
13
+ /// <summary>
14
+ /// Instantiate a new WixException.
15
+ /// </summary>
16
+ public WixException()
17
+ {
18
+ }
19
+
20
+ /// <summary>
21
+ /// Instantiate a new WixException with a simple string message.
22
+ /// </summary>
23
+ /// <param name="message">Simple string message.</param>
24
+ public WixException(string message) : base(message)
25
+ {
26
+ }
27
+
28
+ /// <summary>
29
+ /// Instantiate a new WixException with a simple message and exception.
30
+ /// </summary>
31
+ /// <param name="message">Simple string message.</param>
32
+ /// <param name="innerException">Inner exception.</param>
33
+ public WixException(string message, Exception innerException) : base(message, innerException)
34
+ {
35
+ }
36
+
37
/// <summary>
38
/// Instantiate a new WixException with a given WixError.
39
/// </summary>