Exception handling from my custom filter in google cloud endpoints -


whenever cloud endpoint throws exception app engine handles exceptions , sends standard response follows.

{   "error" : {     "message" : "java.lang.arithmeticexception: / zero",     "code" : 503,     "errors" : [ {       "domain" : "global",       "reason" : "backenderror",       "message" : "java.lang.arithmeticexception: / zero"     } ]   } } 

but want handle exception in custom filters , set relevant status code response.

also want redirect different url. how endpoints?

what should set error handler explained here. way can catch of standard exceptions thrown endpoints or whatever custom exceptions throw yourself.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -