Implement exceptions in scopes