import static org.w3c.dom.Node.TEXT_NODE;
import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.net.URI;
throws IOException {
try {
((JSONCodec<Object>) codec).writeValue(writer, value);
- } catch (IOException e) {
+ } catch (IOException | RuntimeException e) {
throw e;
} catch (Exception e) {
- Throwables.propagateIfPossible(e);
throw new RuntimeException(e);
}
}