Efi MK
Efi MK

Reputation: 1042

Global catch for app engine - java sdk

I know that global try catch for Python does exist, what about Java implementation ?

Thanks, Efi

Upvotes: 0

Views: 165

Answers (1)

shuaiyuancn
shuaiyuancn

Reputation: 2794

Don't know about Python. But I think you can just add try-catch(Exception e) as the top-level in your post()/get() method. But please note unnecessary try-catch is a cost of performance and I don't think simply using catch(Exception e) is a good way of programming. You may suffer and spend more time to debug later.

Upvotes: 1

Related Questions