Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- try
- {
- Hoge();
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.StackTrace);
- }
- Console.ReadKey();
- }
- static void Hoge()
- {
- //try
- //{
- Piyo();
- //}
- //catch
- //{
- // throw;
- //}
- }
- static void Piyo()
- {
- //try
- //{
- Fuga();
- //}
- //catch
- //{
- // throw;
- //}
- }
- static void Fuga()
- {
- //try
- //{
- throw new Exception();
- //}
- //catch
- //{
- // throw;
- //}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment