21
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
try
8
{
9
DoSomething();
10
}
11
catch(NotImplementedException e)
12
{
13
throw new ApplicationException("An exception occurred");
14
}
15
}
16
17
public static void DoSomething()
18
{
19
throw new NotImplementedException("Something went wrong");
20
}
21
}
Cached Result
Run-time exception (line 13): An exception occurred
Stack Trace:
[System.ApplicationException: An exception occurred]
at Program.Main() :line 13
Stack Trace:
[System.ApplicationException: An exception occurred]
at Program.Main() :line 13