Learning exception handling syntax