thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek Goel <goelvivek2...@gmail.com>
Subject Setting proper error code to exception
Date Mon, 22 Jul 2013 15:26:31 GMT
Hi,
I am using C++ thrift server and PHP client. I am facing a problem related
to exception.
ThriftException have error code as 0 in PHP client. Is there a way to set
error code from server side ?

Currently I am doing like this:
Adding one more attribute error_code in exception and then in PHP catching
exception and throwing that exception again.

exception FileSystemException {
  1:  required   i64 error_code_
}

Is there any better way of doing this ?

regards
Vivek Goel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message