Commit e5ff294a authored by Marcel Rieger's avatar Marcel Rieger
Browse files

Document AjaxException.

parent 7162d3d9
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment