Closed
Bug 435507
Opened 16 years ago
Closed 16 years ago
Provide a method of hooking the WebService error codes
Categories
(Bugzilla :: WebService, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: mkanat, Assigned: mkanat)
Details
Attachments
(1 file)
4.73 KB,
patch
|
gregaryh
:
review+
|
Details | Diff | Splinter Review |
Right now you can extend the webservice, and you can hook the templates to add new errors, but you can't add any error code for your new errors, so we need a way for extensions to add their own error codes.
Assignee | ||
Comment 1•16 years ago
|
||
Here it is, complete with example code.
Assignee: webservice → mkanat
Status: NEW → ASSIGNED
Attachment #322321 -
Flags: review?(ghendricks)
Attachment #322321 -
Flags: review?(LpSolit)
Comment 2•16 years ago
|
||
Comment on attachment 322321 [details] [diff] [review] v1 Excellent. This is just what we need.
Attachment #322321 -
Flags: review?(ghendricks) → review+
Assignee | ||
Updated•16 years ago
|
Attachment #322321 -
Flags: review?(LpSolit)
Assignee | ||
Updated•16 years ago
|
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
Assignee | ||
Comment 3•16 years ago
|
||
trunk: Checking in Bugzilla/Error.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Error.pm,v <-- Error.pm new revision: 1.24; previous revision: 1.23 done Checking in Bugzilla/Hook.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Hook.pm,v <-- Hook.pm new revision: 1.15; previous revision: 1.14 done RCS file: /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/webservice-error_codes.pl,v done Checking in extensions/example/code/webservice-error_codes.pl; /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/webservice-error_codes.pl,v <-- webservice-error_codes.pl initial revision: 1.1 done Checking in extensions/example/lib/WSExample.pm; /cvsroot/mozilla/webtools/bugzilla/extensions/example/lib/WSExample.pm,v <-- WSExample.pm new revision: 1.3; previous revision: 1.2 done RCS file: /cvsroot/mozilla/webtools/bugzilla/extensions/example/template/en/global/user-error-errors.html.tmpl,v done Checking in extensions/example/template/en/global/user-error-errors.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/extensions/example/template/en/global/user-error-errors.html.tmpl,v <-- user-error-errors.html.tmpl initial revision: 1.1 done 3.2 branch: Checking in Bugzilla/Error.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Error.pm,v <-- Error.pm new revision: 1.23.2.1; previous revision: 1.23 done Checking in Bugzilla/Hook.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Hook.pm,v <-- Hook.pm new revision: 1.14.2.1; previous revision: 1.14 done Checking in extensions/example/code/webservice-error_codes.pl; /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/webservice-error_codes.pl,v <-- webservice-error_codes.pl new revision: 1.1.2.1; previous revision: 1.1 done Checking in extensions/example/lib/WSExample.pm; /cvsroot/mozilla/webtools/bugzilla/extensions/example/lib/WSExample.pm,v <-- WSExample.pm new revision: 1.2.2.1; previous revision: 1.2 done Checking in extensions/example/template/en/global/user-error-errors.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/extensions/example/template/en/global/user-error-errors.html.tmpl,v <-- user-error-errors.html.tmpl new revision: 1.1.2.1; previous revision: 1.1 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•