Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
e5ff294a
Commit
e5ff294a
authored
Apr 29, 2015
by
Marcel Rieger
Browse files
Document AjaxException.
parent
7162d3d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/__init__.py
View file @
e5ff294a
...
...
@@ -256,8 +256,9 @@ class AjaxException(Exception):
"""
AjaxException that is handled by the ajax tool and that can be raised in controller methods.
*message* is the error message to show. *code* should be an integer that represents a specific
type of exception. Note that this code is meant to extend HTTP status codes, i.e. 500 means
"internal server error", etc. If *alert* is *True*, the message is shown in a dialog in the GUI.
type of exception. If *code* is *None* and *message* is an integer representing a http status
code, the error message is set to the standard error message for that http error. If *alert* is
*True*, the message is shown in a dialog in the GUI.
"""
def
__init__
(
self
,
message
,
code
=
None
,
alert
=
True
):
...
...
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