i'm not sure if \Exception is added to allowed exceptions in api.