SHARE
TWEET

Untitled

a guest Jun 16th, 2013 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try
  2. {
  3.     string line = ReadLine();
  4.     if (line.Length == 0)
  5.     {
  6.         throw new FormatException("Invalid line format");
  7.     }
  8.     WriteLine("Some good stuff");
  9. }
  10. catch (FormatException e)
  11. {
  12.     WriteLine("Error: The program will now exit!");
  13. }
  14. finally
  15. {
  16.     Exit();
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top