Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- DoSomething();
- if (problem1)
- throw new Exception();
- DoSomethingElse();
- if (problem2)
- throw new Exception();
- }
- catch
- {
- Console.WriteLine("Problem!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement