Skip to content

Commit baa26be

Browse files
committed
Refactor argument null exception message.
1 parent 5f37d8d commit baa26be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MediatR/Entities/OpenBehavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public OpenBehavior(Type openBehaviorType, ServiceLifetime serviceLifetime = Ser
4040
/// <exception cref="ArgumentNullException">Thrown if <paramref name="openBehaviorType"/> is null.</exception>
4141
private static void ValidatePipelineBehaviorType(Type openBehaviorType)
4242
{
43-
if (openBehaviorType == null) throw new ArgumentNullException(nameof(openBehaviorType));
43+
if (openBehaviorType == null) throw new ArgumentNullException($"Open behavior type can not be null.");
4444

4545
bool isPipelineBehavior = openBehaviorType.GetInterfaces()
4646
.Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IPipelineBehavior<,>));

0 commit comments

Comments
 (0)