class KeyExistsError(Exception): pass class UserExistsError(Exception): pass class UserCredentialError(Exception): pass 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