Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
METRo projects
metro
Commits
a97f2ddd
Commit
a97f2ddd
authored
May 11, 2010
by
Miguel Tremblay
Browse files
Add the class Metro_xml_error.
parent
753c241a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/toolbox/metro_error.py
View file @
a97f2ddd
...
...
@@ -91,3 +91,12 @@ class Metro_date_error(Metro_error):
""" Put the message in string only if it is a string"""
self
.
sError
=
"
\n
"
+
_
(
"Date error: "
)
+
self
.
sError
return
self
.
sError
class
Metro_xml_error
(
Metro_error
):
"""
Something went wrong in parsing the XML
"""
def
__str__
(
self
):
""" Put the message in string only if it is a string"""
self
.
sError
=
"
\n
"
+
self
.
sError
return
self
.
sError
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment