Which two lines does this program print?

from Exceptions
C# 14 / .NET 10 intermediate 2 min

Which two lines does this program print?

csharp
using System;

try
{
    throw new ArgumentOutOfRangeException("quantity");
}
catch (ArgumentException error) when (error.ParamName == "other")
{
    Console.WriteLine("filtered");
}
catch (ArgumentOutOfRangeException)
{
    Console.WriteLine("range");
}
finally
{
    Console.WriteLine("finished");
}
Open in playground
Report an error