add code to RPC own exception