Java 8 added an UncheckedIOException class which is handy for rethrowing IOException. Since we're on 7, that class isn't available. However, if you just want to throw it, you can use the rethrow() method in Throwables which won't wrap the exception (abuses type erasure to allow checked exceptions to be thrown).
On 24 July 2017 at 14:56, Mikael Ståldal <[email protected]> wrote: > But that won't work, I need to at least translate JsonProcessingException > (Jackson specific, which we don't want to expose) to our own ParseException. > > > > On 2017-07-23 22:01, Gary Gregory wrote: > >> @Override >> public LogEvent parseFrom(InputStream input) throws IOException, >> ParseException { >> return objectReader.readValue(input); >> } >> > -- Matt Sicker <[email protected]>
