Closed TomasVaskevicius closed 8 years ago
@haijunz
I am assuming this builds because these handler methods are only called from swift/nifty library and all such calls are wrapped with try...catch? If so LGTM
Yes, these methods are only called in try...catch(Exception e) blocks or in methods whose signature declares 'throws Exception'.
ThriftServiceProcessor wraps calls to ThriftMethodProcessor in try {} catch (Exception e) {} so I think that we should declare checked exceptions in the ThriftEventHandler. Declared checked exceptions are useful, because once we have them, we could, for example, throw an exception in preRead() method if our ThriftEventHandler fails to authenticate a particular request.