diff options
author | Tim Roes <mail@timroes.de> | 2011-11-29 19:17:59 +0100 |
---|---|---|
committer | Tim Roes <mail@timroes.de> | 2011-11-29 19:17:59 +0100 |
commit | 1c122589394bb9150f09facdcd6e75d054eb69a4 (patch) | |
tree | 49e83742f41c4b30217b50542d9fd3241a49e804 /lib/plugins | |
parent | 5505dd9afd380c1676d9d0cef3e10d5be06ffee2 (diff) | |
download | rpg-1c122589394bb9150f09facdcd6e75d054eb69a4.tar.gz rpg-1c122589394bb9150f09facdcd6e75d054eb69a4.tar.bz2 |
Using sensefull error codes.
Since there are currently a lot of error coded returning 1, that mean
completly different thing, i guess it would be very nice to change this.
A client should not be forced to parse the error message, the error code
should be enough to explain the error.
This change suggests some error codes, that have a hierarchical
structure. In the following list the categories begin with = and the
error codes actually used with -.
= 100 Page errors
== 110 Page access errors
--- 111 User is not allowed to read the requested page
--- 112 User is not allowed to edit the page
== 120 Page existance errors
--- 121 The requested page does not exist
== 130 Page edit errors
--- 131 Empty page id
--- 132 Empty page content
--- 133 Page is locked
--- 134 Positive wordblock check
= 200 Media errors
== 210 Media access errors
--- 211 User is not allowed to read media
--- 215 User is not allowed to list media
== 220 Media existance errors
--- 221 The requested media does not exist
= 300 Search errors
== 310 Argument errors
--- 311 The provided value is not a valid timestamp
== 320 Search result errors
--- 321 No chances in specified timeframe
Diffstat (limited to 'lib/plugins')
0 files changed, 0 insertions, 0 deletions