Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
489b6732
Commit
489b6732
authored
May 12, 2021
by
Eckhart Arnold
Browse files
error.py: preparation for multiple input files
parent
d1bff1e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/error.py
View file @
489b6732
...
...
@@ -36,14 +36,14 @@ the string representations of the error objects. For example::
The central class of module DHParser's ``error`` is the ``Error``-class.
The easiest way to create an error object is by instantiating
the Error class with an error message and a source position::
the Error class with an error message and a source position::
>>> error = Error('Somethigs went wrong', 123)
>>> print(error)
Error (1000): Something went wrong
>>> error = Error('Somethigs went wrong', 123)
>>> print(error)
Error (1000): Something went wrong
However, in order to report errors, usually at least a line and
column-number
However, in order to report errors, usually at least a line and
column-number
"""
...
...
Write
Preview
Markdown
is supported
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