Debian Codegraph @

external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/ExceptionFromResource.cs

raw symbols SCIP
1 // Copyright (c) .NET Foundation. All rights reserved.
2 // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
4 using System;
5 using System.Collections.Generic;
6 using System.Linq;
7 using System.Text;
8 using System.Threading.Tasks;
9
10 namespace Microsoft.NuGet.Build.Tasks
11 {
12 /// <summary>
13 /// An exception for reporting errors to the user. Points to a resource in <see cref="Strings"/> so
14 /// we get the proper MSBuild localization handling.
15 /// </summary>
16 internal sealed class ExceptionFromResource : Exception
17 {
18 public string ResourceName { get; private set; }
19 public string[] MessageArgs { get; private set; }
20
21 public ExceptionFromResource(string resourceName, params string[] messageArgs)
22 {
23 ResourceName = resourceName;
24 MessageArgs = messageArgs;
25 }
26 }
27 }