我想只输出此调试输出的消息部分,而不是所有代码和id#s; s

时间:2015-05-31 09:42:18

标签: java exception

我期待只收到以下代码的消息=部分,在逗号后面:

PostJSONImpl{
    id='1381405208752125_1846149835610991', 
    from=CategoryJSONImpl [id=636802996442414, name=Jasmine Jenise Johnson, category=null, createdTime=null], 
    to=[IdNameEntityJSONImpl [name=Cairo Swappers and Shoppers, id=1381405208752125]], 
    message='White IPhone 4S Verizon Wireless perfect condition no scratches or cracks can be used on page plus

1 个答案:

答案 0 :(得分:1)

通常你只能得到来自java的消息

e.getMessage()

函数的恒等式。你可以查看JSON Parser。