Exposed RpcError constructor for client library