Using 'as'-syntax for exceptions