-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathBadImageReferenceException.cs
41 lines (36 loc) · 1.14 KB
/
BadImageReferenceException.cs
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
40
41
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.Serialization;
#nullable disable
namespace Microsoft.Build.Tasks
{
/// <summary>
/// The reference points to a bad image.
/// </summary>
[Serializable]
internal sealed class BadImageReferenceException : Exception
{
/// <summary>
/// Construct
/// </summary>
internal BadImageReferenceException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct
/// </summary>
#if NET8_0_OR_GREATER
[Obsolete(DiagnosticId = "SYSLIB0051")]
#endif
private BadImageReferenceException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Gets a message that describes the exception.
/// </summary>
public override string Message => (InnerException == null) ? base.Message : $"{base.Message} {InnerException.Message}";
}
}