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')