From e0db56e755e94e07677faa3729a4affe38a3ce18 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 28 May 2008 03:08:59 +0000 Subject: Bug 435507: Provide a method of hooking the WebService error codes Patch By Max Kanat-Alexander r=ghendricks, a=mkanat --- Bugzilla/Hook.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Bugzilla/Hook.pm') diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index 0cf566db1..820693ee0 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -262,3 +262,22 @@ WebService functions (and so that you also don't conflict with other plugins). =back + +=head2 webservice-error_codes + +If your webservice extension throws custom errors, you can set numeric +codes for those errors here. + +Extensions should use error codes above 10000, unless they are re-using +an already-existing error code. + +Params: + +=over + +=item C + +A hash that maps the names of errors (like C) to numbers. +See L for an example. + +=back -- cgit v1.2.3-24-g4f1b