I can throw and catch it. What am I doing wrong?
Sent from mobile device, please ignore spelling mistakes.
Von: Tom
Gesendet: 12.10.2017 07:22
An: dev@thrift.apache.org
Betreff: Re: TException and cross-tests
Which is precisely the source of confusion. I can
n with errorCode = 1001 and message =
> arg
>* elsen if arg == "TException" throw TException
>* else do not throw anything
>*/
> void testException(1: string arg) throws(1: Xception err1),
>
>
> -Ursprüngliche Nachricht-
> From: Tom
> Sent: We
* elsen if arg == "TException" throw TException
* else do not throw anything
*/
void testException(1: string arg) throws(1: Xception err1),
-Ursprüngliche Nachricht-
From: Tom
Sent: Wednesday, October 11, 2017 7:20 AM
To: dev@thrift.apache.org
Subject: Re: TException and
Thank you for the thorough explanation. It clarified some bits of the
exception system for me.
I'm still not sure about that test I quoted, though - the
testException one. My best guess is that when the client calls
testException("TException"), the server should pass back an instance
of Xception (
Hi Tom,
All Apache Thrift generated exceptions are derived from TException, not
just user defined exceptions. There are transport exceptions like
TTransportException which raise connectivity problems, TProtocolExceptions
for serialization errors, TApplicationExceptions for Server errors (e.g.
call
Hi,
We're working on Common Lisp support for Thrift. I've run into a
little issue while implementing cross-tests - namely this bit:
/**
* Print 'testException(%s)' with arg as '%s'
* @param string arg - a string indication what type of exception to throw
* if arg == "Xception" throw Xc