Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larbatch
python
xmlerror.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
######################################################################
3
#
4
# Name: xmlerror.py
5
#
6
# Purpose: Python class XMLError (exception class).
7
#
8
# Created: 12-Dec-2014 Herbert Greenlee
9
#
10
######################################################################
11
12
from
__future__
import
absolute_import
13
from
__future__
import
print_function
14
15
# XML exception class.
16
17
class
XMLError
(Exception):
18
19
def
__init__
(self, s):
20
self.
value
= s
21
return
22
23
def
__str__
(self):
24
return
self.
value
25
python.xmlerror.XMLError
Definition:
xmlerror.py:17
python.xmlerror.XMLError.value
value
Definition:
xmlerror.py:20
python.xmlerror.XMLError.__str__
def __str__
Definition:
xmlerror.py:23
python.xmlerror.XMLError.__init__
def __init__
Definition:
xmlerror.py:19
Generated by
1.8.5