diff options
Diffstat (limited to 'extensions/example/lib')
-rw-r--r-- | extensions/example/lib/WSExample.pm | 4 |
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; |