Package pyvb :: Module exception
[hide private]
[frames] | no frames]

Source Code for Module pyvb.exception

 1  """exception - Custom pyvb exceptions.""" 
 2   
3 -class vbBaseException(Exception):
4 """The base exception that is inherited from all other pyvb exceptions."""
5 - def __init__(self, msg):
6 """Constructor. Initilize the exception message. 7 @param msg: The exception message. 8 @type msg: String 9 @return: A new L{pyvb.exception.vbBaseException} instance. 10 @rtype: L{pyvb.exception.vbBaseException}""" 11 Exception.__init__(self, msg)
12
13 -class vbCommandError(vbBaseException):
14 """An exception that is raised when there is an error with a command."""
15 - def __init__(self, msg):
16 """Constructor. Initialize the exception message. 17 @param msg: The exception message. 18 @type msg: String 19 @return: A new L{pyvb.exception.vbCommandError} instance. 20 @rtype: L{pyvb.exception.vbCommandError}""" 21 vbBaseException.__init__(self, msg)
22
23 -class vbDvdError(vbBaseException):
24 """An exception that is raised when there is an error with a DVD."""
25 - def __init__(self, msg):
26 """Constructor. Initialize the exception message. 27 @param msg: The exception message. 28 @type msg: String 29 @return: A new L{pyvb.exception.vbDvdError} instance. 30 @rtype: L{pyvb.exception.vbDvdError}""" 31 vbBaseException.__init__(self, msg)
32
33 -class vbHddError(vbBaseException):
34 """An exception that is raised when there is an error with an HDD."""
35 - def __init__(self, msg):
36 """Constructor. Initialize the exception message. 37 @param msg: The exception message. 38 @type msg: String 39 @return: A new L{pyvb.exception.vbHddError} instance. 40 @rtype: L{pyvb.exception.vbHddError}""" 41 vbBaseException.__init__(self, msg)
42
43 -class vbOsTypeError(vbBaseException):
44 """An exception that is raised when there is an error with an OS type."""
45 - def __init__(self, msg):
46 """Constructor. Initialize the exception message. 47 @param msg: The exception message. 48 @type msg: String 49 @return: A new L{pyvb.exception.vbOsTypeError} instance. 50 @rtype: L{pyvb.exception.vbOsTypeError}""" 51 vbBaseException.__init__(self, msg)
52
53 -class vbParserError(vbBaseException):
54 """An exception that is raised when there is an error with a parser."""
55 - def __init__(self, msg):
56 """Constructor. Initialize the exception message. 57 @param msg: The exception message. 58 @type msg: String 59 @return: A new L{pyvb.exception.vbParserError} instance. 60 @rtype: L{pyvb.exception.vbParserError}""" 61 vbBaseException.__init__(self, msg)
62
63 -class vbVmError(vbBaseException):
64 """An exception that is raised when there is an error with a vm."""
65 - def __init__(self, msg):
66 """Constructor. Initialize the exception message. 67 @param msg: The exception message. 68 @type msg: String 69 @return: A new L{pyvb.exception.vbVmError} instance. 70 @rtype: L{pyvb.exception.vbVmError}""" 71 vbBaseException.__init__(self, msg)
72
73 -class vbVmNotFound(vbBaseException):
74 """An exception that is raised when there is a vm cannot be found."""
75 - def __init__(self, msg):
76 """Constructor. Initialize the exception message. 77 @param msg: The exception message. 78 @type msg: String 79 @return: A new L{pyvb.exception.vbVmNotFound} instance. 80 @rtype: L{pyvb.exception.vbVmNotFound}""" 81 vbBaseException.__init__(self, msg)
82