Letractively / crux-framework

Automatically exported from code.google.com/p/crux-framework
0 stars 0 forks source link

Log exception in the console when building rest request fails #519

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
try{
      builder.setHeader("Content-Type", "application/json");
      JSONValue serialized = new ...encode(dto);
      String requestData = (serialized==null||serialized.isNull()!=null)?null:serialized.toString();
      builder.setRequestData(requestData);
      builder.setHeader("X-XSRF", "1");
      builder.send();
    }catch (Exception e){

    ... Here should enter a log!!!

      resultado.onError(new RestError(-1, Crux.getMessages().restServiceUnexpectedError(e.getMessage())));
    } 

Original issue reported on code.google.com by samuel@cruxframework.org on 11 Sep 2014 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by samuel@cruxframework.org on 30 Sep 2014 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by alexan...@triggolabs.com on 30 Sep 2014 at 5:19

GoogleCodeExporter commented 9 years ago
Revision TRUNK: 5611

Original comment by samuel@cruxframework.org on 30 Sep 2014 at 5:26