[英]Custom exception message format for Google App Engine - Java
I am using Google App Engine with Cloud Endpoints. 我正在将Google App Engine与Cloud Endpoints结合使用。
By default AppEngines exception format is like this: 默认情况下,AppEngines异常格式如下:
{
"error": {
"errors": [
{
"domain": "",
"reason": "",
"message": "",
"locationType": "",
"location": ""
}
],
"code": <SOME_CODE>,
"message": ""
}
}
Can I change the format to something else? 我可以将格式更改为其他格式吗? If yes where should I write the code? 如果是,我应该在哪里编写代码?
看来,如果我使用的是Google Cloud Endpoint,则无法修改邮件格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.