Exception handling on spaceapi rpc