Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Transport t;
- async Task start() {
- try { await t.connect(); }
- catch (TestException) { }
- }
- await start();
- class Transport {
- async Task connect() {
- try {
- blah(); // causes a TestException to be thrown
- }
- catch (AnythingButTestException) { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement