Implement NewException helper