protected final RuntimeException newException(
final String message, final Exception cause,
final String url, final String json) {
if(cause instanceof JsonMappingException) {
return new NetatmoException("Could not parse JSON from URL '"
+ url + "': " + json, cause);
}
return new NetatmoException(message, cause);
}