Hi Amarko,
In RPC API, if you want to handle exception on Server side then you can create your general custom Exception message and can send it to client in response.
On Client side you can validate the same message for example message like :
-
In Success :{"success":true,"message":"RPC Response"}
-
In Exception : {"success":false,"exception":"Exception message"}
Let me know if it helps.
Thanks & Regards
Vishnu Garg