Implement custom exceptions.