2017-06-01 19:08:38 +02:00
|
|
|
class KeyExistsError(Exception):
|
|
|
|
|
pass
|
|
|
|
|
|
2017-06-29 17:34:40 +03:00
|
|
|
|
2017-06-01 19:08:38 +02:00
|
|
|
class UserExistsError(Exception):
|
|
|
|
|
pass
|
|
|
|
|
|
2017-06-29 17:34:40 +03:00
|
|
|
|
2017-06-01 19:08:38 +02:00
|
|
|
class UserCredentialError(Exception):
|
|
|
|
|
pass
|
2026-10-19 20:53:32 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
class TemplateNotFoundError(Exception):
|
|
|
|
|
"""Raised when an OpenNebula VM template id does not exist (any more)."""
|
|
|
|
|
|
|
|
|
|
def __init__(self, template_id):
|
|
|
|
|
super(TemplateNotFoundError, self).__init__(
|
|
|
|
|
"OpenNebula template %s does not exist" % template_id
|
|
|
|
|
)
|
|
|
|
|
self.template_id = template_id
|