C Sharp (C#) - Exception Handling
Consider this code:
try {
throw new Exception("Error");
} catch (Exception ex) when (ex.Message == "Warning") {
Console.WriteLine("Warning caught");
} catch (Exception ex) when (ex.Message == "Error") {
Console.WriteLine("Error caught");
}What will be printed?
