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
Post a Comment