diff options
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 9063d1068..9e9e5182b 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -1120,3 +1120,13 @@ class ServiceGroupUnavailable(NovaException): class DBNotAllowed(NovaException): message = _('%(binary)s attempted direct database access which is ' 'not allowed by policy') + + +class UnsupportedVirtType(Invalid): + message = _("Virtualization type '%(virt)s' is not supported by " + "this compute driver") + + +class UnsupportedHardware(Invalid): + message = _("Requested hardware '%(model)s' is not supported by " + "the '%(virt)s' virt driver") |