If you want to throw an already exist error, you currently do:
raise exceptions.AlreadyExists('MyOrg::Foo::Bar', model.BarId)
It would be nice if this could be:
from models import resource_type
raise exceptions.AlreadyExists(resource_type, model.BarId)
or even
raise exceptions.AlreadyExists(model)
If you want to throw an already exist error, you currently do:
It would be nice if this could be:
or even