Skip to content

Commit

Permalink
UnreachableException is more correct (#4431)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Dec 23, 2024
1 parent cc1acfd commit 530bee3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Diagnostics;
using System.Runtime.CompilerServices;

namespace MSTest.Analyzers.Helpers;

internal static class ApplicationStateGuard
{
public static InvalidOperationException Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0)
public static UnreachableException Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0)
=> new($"This program location is thought to be unreachable. File='{path}' Line={line}");
}

0 comments on commit 530bee3

Please sign in to comment.