Class PyCompileError
object --+
|
exceptions.BaseException --+
|
exceptions.Exception --+
|
PyCompileError
Exception raised when an error occurs while attempting to
compile the file.
To raise this exception, use
raise PyCompileError(exc_type,exc_value,file[,msg])
where
exc_type: exception type to be used in error message
type name can be accesses as class variable
'exc_type_name'
exc_value: exception value to be used in error message
can be accesses as class variable 'exc_value'
file: name of file being compiled to be used in error message
can be accesses as class variable 'file'
msg: string message to be written as error message
If no value is given, a default exception message will be given,
consistent with 'standard' py_compile output.
message (or default) can be accesses as class variable 'msg'
|
|
__init__(self,
exc_type,
exc_value,
file,
msg='')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
|
Inherited from exceptions.Exception:
__new__
Inherited from exceptions.BaseException:
__delattr__,
__getattribute__,
__getitem__,
__getslice__,
__reduce__,
__repr__,
__setattr__,
__setstate__
Inherited from object:
__hash__,
__reduce_ex__
|
__init__(self,
exc_type,
exc_value,
file,
msg='')
(Constructor)
|
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Overrides:
object.__init__
- (inherited documentation)
|
__str__(self)
(Informal representation operator)
|
|
str(x)
- Overrides:
object.__str__
- (inherited documentation)
|