C Sharp (C#) - Exception Handling
What will be the output of the following C# code?
class MyException : Exception { public MyException(string message) : base(message) {} }
try {
throw new MyException("Error happened");
} catch (MyException ex) {
Console.WriteLine(ex.Message);
}