Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Transport t;
  2. async Task start() {
  3.   try { await t.connect(); }
  4.   catch (TestException) { }
  5. }
  6. await start();
  7.  
  8. class Transport {
  9.   async Task connect() {
  10.     try {
  11.       blah(); // causes a TestException to be thrown
  12.     }
  13.     catch (AnythingButTestException) { }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement