web2py/web2py — pull request #208 by michele-comitini (2013-09-11 15:53:39+00:00)
Title: Allow raising a custom Service.JsonRpcException inside a jsonrpc2 action

With this any jsonrpc2 call can raise a custom exception.
For instance:

raise Service.JsonRpcException(1000, 'a custom error with a custom error code')