avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arturo Candela <fri...@gmail.com>
Subject Re: Howto return an method error defined on the json.
Date Mon, 06 Mar 2017 16:48:16 GMT
Hi

I've found the problem, it was my fault.

Since Avro uses reflection, the unhandled exceptions by user code are
threated by the debugger as "code" problems. So, if you disable the debug
options: "Enable Just My Code" the debuging works.

Regards


http://stackoverflow.com/questions/2658908/why-is-targetinvocationexception-treated-as-uncaught-by-the-ide

El lun., 6 mar. 2017 a las 17:13, Arturo Candela (<frisix@gmail.com>)
escribió:

> Hi guys.
>
> I'm trying to implement the avro rpc 1.7.7 using a rabbitmq queue. I've
> more or less a version working and a java client can run remote remote
> methods and a c# server is who executes the method and returns the response
> to the client.
>
> I'm not able to return an error defined on the protocol, For example, If I
> have a mail server with the method send and an error which is called
> "ServerError", when I throw that error the server crashes because and
> unhandled exception, That is because I don't catch it.
>
> What I would like to know if there is another way to return the exception
> to the client or assure that I have a problem in my current implement
>
> Thank you in advance,
>
> Regards
>

Mime
View raw message