blob: e7d8502ef30ba6bbf54f942ab9c791b3984e56cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# -*- coding: UTF-8 -*-
# Copyright 2004-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
class EnvironmentUndefinedError(Exception):
"""
Environment Variable is undefined!
"""
class InvalidConfigError(Exception):
"""
Invalid Configuration File
"""
def __init__(self, file):
self.file = file
class InvalidVMError(Exception):
"""
Specified Virtual Machine does not exist or is invalid
"""
class ProviderUnavailableError(Exception):
"""
No provider is available for the specified Virtual.
"""
def __init__( self, virtual, vms, packages ):
self._virtual = virtual
self._vms = vms
self._packages = packages
def packages(self):
return self._packages
def virtual(self):
return self._virtual
def vms(self):
return self._vms
class MissingOptionalsError(Exception):
"""
Some optional utilities are missing from a valid VM
"""
class PermissionError(Exception):
"""
The permission on the file are wrong or you are not a privileged user
"""
# vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap:
|