summaryrefslogtreecommitdiffstats
path: root/extensions/example/lib/WSExample.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/example/lib/WSExample.pm')
-rw-r--r--extensions/example/lib/WSExample.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/example/lib/WSExample.pm b/extensions/example/lib/WSExample.pm
index ced4c6d36..146867294 100644
--- a/extensions/example/lib/WSExample.pm
+++ b/extensions/example/lib/WSExample.pm
@@ -21,10 +21,12 @@
package extensions::example::lib::WSExample;
use strict;
use warnings;
-
use base qw(Bugzilla::WebService);
+use Bugzilla::Error;
# This can be called as Example.hello() from XML-RPC.
sub hello { return 'Hello!'; }
+sub throw_an_error { ThrowUserError('example_my_error') }
+
1;