Hi Abhishek, The throws something in your protocol will be compiled into a throws something in Java. The definition of something must be an error (not a record), which will be compiled into a subclass of AvroRemoteException.
So while your exact requirement cannot be satisfied, you will get something similar. Kind regards, Oscar On Wed, 15 Jun 2022 at 14:57, Abhishek Dasgupta < abhishekdasgupta...@gmail.com> wrote: > I want the Avro generated Java class methods to have throws > AvroRemoteException ? How to code this in my Avro IDL file ? > > Suppose I have this RPC message in my Avro protocol: > > void foo(int arg) throws something; > > so the generated Avro POJO has: > > void foo(int arg) throws AvroRemoteException > > What should put instead of something ? > > Using Avro 1.11.0 > -- ✉️ Oscar Westra van Holthe - Kind <os...@westravanholthe.nl>