Use IllegalArgumentException, which probably means there is a mismatch
between the function and argument.
Change-Id: I6a1a7e7535b2b71b2a7439b2bb8975accd8f489c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
NormalizedNodeWriter.forStreamWriter(transformWriter).write(original);
return result.getResult();
} catch (IOException e) {
NormalizedNodeWriter.forStreamWriter(transformWriter).write(original);
return result.getResult();
} catch (IOException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);