thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J <mvn...@gmail.com>
Subject Why isn't TException a subclass of RuntimeException in Java?
Date Wed, 02 Sep 2015 19:37:57 GMT
It seems tedious to have to mark every method that does a thrift rpc call
with "throws TException" or have to put a try-catch around every call. Why
wasn't TException made a subclass of RuntimeException? I think many RPC
implementations I've used usually make the rpc/proxy errors runtime
exceptions. There usually isn't anything you can do about it locally in the
client call anyway.

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