Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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.__str__
def __str__(self)
Definition:
xmlerror.py:23
python.xmlerror.XMLError
Definition:
xmlerror.py:17
python.xmlerror.XMLError.value
value
Definition:
xmlerror.py:20
python.xmlerror.XMLError.__init__
def __init__(self, s)
Definition:
xmlerror.py:19
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
Generated by
1.8.11