Guest User

Untitled

a guest
May 4th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApplication1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             try
  10.             {
  11.                 Hoge();
  12.             }
  13.             catch (Exception ex)
  14.             {
  15.                 Console.WriteLine(ex.StackTrace);
  16.             }
  17.             Console.ReadKey();
  18.         }
  19.  
  20.         static void Hoge()
  21.         {
  22.             //try
  23.             //{
  24.             Piyo();
  25.             //}
  26.             //catch
  27.             //{
  28.             //    throw;
  29.             //}
  30.         }
  31.  
  32.         static void Piyo()
  33.         {
  34.             //try
  35.             //{
  36.             Fuga();
  37.             //}
  38.             //catch
  39.             //{
  40.             //    throw;
  41.             //}
  42.         }
  43.  
  44.         static void Fuga()
  45.         {
  46.             //try
  47.             //{
  48.             throw new Exception();
  49.             //}
  50.             //catch
  51.             //{
  52.             //    throw;
  53.             //}
  54.         }
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment