blob: e27e3584466d1b3a7496922f04b8016ed7d46dac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixToolset.Data
{
using System;
/// <summary>
/// Base class for all WiX exceptions.
/// </summary>
[Serializable]
public class WixException : Exception
{
/// <summary>
/// Instantiate a new WixException with a given WixError.
/// </summary>
/// <param name="error">The localized error information.</param>
public WixException(Message error)
: this(error, null)
{
}
/// <summary>
/// Instantiate a new WixException with a given WixError.
/// </summary>
/// <param name="error">The localized error information.</param>
/// <param name="exception">Original exception.</param>
public WixException(Message error, Exception exception) :
base(error.ToString(), exception)
{
this.Error = error;
}
/// <summary>
/// Gets the error message.
/// </summary>
/// <value>The error message.</value>
public Message Error { get; }
}
}
|