1 """exception - Custom pyvb exceptions."""
2
4 """The base exception that is inherited from all other pyvb exceptions."""
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
14 """An exception that is raised when there is an error with a command."""
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
24 """An exception that is raised when there is an error with a DVD."""
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
34 """An exception that is raised when there is an error with an HDD."""
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
44 """An exception that is raised when there is an error with an OS type."""
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
54 """An exception that is raised when there is an error with a parser."""
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
64 """An exception that is raised when there is an error with a vm."""
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
74 """An exception that is raised when there is a vm cannot be found."""
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