summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Constants.pm
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-08-12 02:12:17 +0200
committerSimon Green <sgreen@redhat.com>2014-08-12 02:12:17 +0200
commit8b98912309870c03c4b82396647682a8d9f247b4 (patch)
tree6760a61bfb5a6db76ad6466396ba076efe594fdc /Bugzilla/WebService/Constants.pm
parent2863a6679fe69c46f1de515d001eb0dd696e5977 (diff)
downloadbugzilla-8b98912309870c03c4b82396647682a8d9f247b4.tar.gz
bugzilla-8b98912309870c03c4b82396647682a8d9f247b4.tar.xz
Bug 419568 - Web Service module to create a component
r=dkl, a=sgreen
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rw-r--r--Bugzilla/WebService/Constants.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm
index 2fa1bdc28..b6dead40d 100644
--- a/Bugzilla/WebService/Constants.pm
+++ b/Bugzilla/WebService/Constants.pm
@@ -203,6 +203,11 @@ use constant WS_ERROR_CODE => {
flag_type_sortkey_invalid => 1104,
flag_type_not_editable => 1105,
+ # Component errors are 1200-1300
+ component_already_exists => 1200,
+ component_is_last => 1201,
+ component_has_bugs => 1202,
+
# Errors thrown by the WebService itself. The ones that are negative
# conform to http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php
xmlrpc_invalid_value => -32600,
@@ -282,6 +287,7 @@ sub WS_DISPATCH {
'Bugzilla' => 'Bugzilla::WebService::Bugzilla',
'Bug' => 'Bugzilla::WebService::Bug',
'Classification' => 'Bugzilla::WebService::Classification',
+ 'Component' => 'Bugzilla::WebService::Component',
'FlagType' => 'Bugzilla::WebService::FlagType',
'Group' => 'Bugzilla::WebService::Group',
'Product' => 'Bugzilla::WebService::Product',