web2py/web2py — pull request #209 by michele-comitini (2013-09-11 16:06:08+00:00)
Title: Allow raising a custom Service.JsonRpcException inside a jsonrpc2 action

Second try...

Allows generating custom JsonRpcException in any jsonrpc2 method:

raise Service.JsonRpcException(1000, 'a custom code and a custom error message'