added json rpc sample error exception