Instead of using 'Exception' class, may be you can use exceptions.BadRequest or any other relevant exception you can find in 'neutron.common.exceptions.py'