]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Raise NotFound exceptions from database
authorZane Bitter <zbitter@redhat.com>
Tue, 12 Jun 2012 14:23:35 +0000 (16:23 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 15 Jun 2012 09:36:33 +0000 (11:36 +0200)
commitf8fbbd07265763b2df4903133e1f73b049b6834d
tree8d8f4b09f9e853ca376181c05c6b260e3ef8e232
parent3b91d100a6c6424961e1ec06cf7afd9a1c9cf49c
Raise NotFound exceptions from database

Raise a specific exception (NotFound) if something is not found in the
database. Then we can match on this exception, rather than searching the
error message (which effectively makes the text of error messages part of
the API).

Change-Id: I22673ffb1407cf95b1fe24eaec8824039c1dda4e
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/db/sqlalchemy/api.py
heat/engine/cloud_watch.py
heat/engine/resources.py