Closed Bug 435507 Opened 16 years ago Closed 16 years ago

Provide a method of hooking the WebService error codes

Categories

(Bugzilla :: WebService, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file)

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.
Attached patch v1Splinter Review
Here it is, complete with example code.
Assignee: webservice → mkanat
Status: NEW → ASSIGNED
Attachment #322321 - Flags: review?(ghendricks)
Attachment #322321 - Flags: review?(LpSolit)
Comment on attachment 322321 [details] [diff] [review]
v1

Excellent. This is just what we need.
Attachment #322321 - Flags: review?(ghendricks) → review+
Attachment #322321 - Flags: review?(LpSolit)
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
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.

Attachment

General

Created:
Updated:
Size: