pykickstart.errors
index
/usr/lib/python2.6/site-packages/pykickstart/errors.py

Error handling classes and functions.
 
This module exports a single function:
 
    formatErrorMsg - Properly formats an error message.
 
It also exports several exception classes:
 
    KickstartError - A generic exception class.
 
    KickstartParseError - An exception for errors relating to parsing.
 
    KickstartValueError - An exception for errors relating to option
                          processing.
 
    KickstartVersionError - An exception for errors relating to unsupported
                            syntax versions.

 
Modules
       
gettext

 
Classes
       
exceptions.Exception(exceptions.BaseException)
KickstartError
KickstartParseError
KickstartValueError
KickstartVersionError

 
class KickstartError(exceptions.Exception)
    A generic exception class for unspecific error conditions.
 
 
Method resolution order:
KickstartError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, val='')
Create a new KickstartError exception instance with the descriptive
message val.  val should be the return value of formatErrorMsg.
__str__(self)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x34f17779c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class KickstartParseError(KickstartError)
    An exception class for errors when processing the input file, such as
unknown options, commands, or sections.
 
 
Method resolution order:
KickstartParseError
KickstartError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)
Create a new KickstartParseError exception instance with the
descriptive message val.  val should be the return value of
formatErrorMsg.
__str__(self)

Data descriptors inherited from KickstartError:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x34f17779c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class KickstartValueError(KickstartError)
    An exception class for errors when processing arguments to commands,
such as too many arguments, too few arguments, or missing required
arguments.
 
 
Method resolution order:
KickstartValueError
KickstartError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)
Create a new KickstartValueError exception instance with the
descriptive message val.  val should be the return value of
formatErrorMsg.
__str__(self)

Data descriptors inherited from KickstartError:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x34f17779c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class KickstartVersionError(KickstartError)
    An exception class for errors related to using an incorrect version of
kickstart syntax.
 
 
Method resolution order:
KickstartVersionError
KickstartError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)
Create a new KickstartVersionError exception instance with the
descriptive message val.  val should be the return value of
formatErrorMsg.
__str__(self)

Data descriptors inherited from KickstartError:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x34f17779c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
Functions
       
formatErrorMsg(lineno, msg='')
Properly format the error message msg for inclusion in an exception.