Implement exceptions.