From ef3e3c48fe9def3fcaebe2036845aecd8796d2a0 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Tue, 15 May 2018 15:08:35 -0500 Subject: [PATCH] #711 - Polishing. --- .../org/springframework/hateoas/core/EncodingUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/springframework/hateoas/core/EncodingUtils.java b/src/main/java/org/springframework/hateoas/core/EncodingUtils.java index a2428b9f..480eaa2c 100644 --- a/src/main/java/org/springframework/hateoas/core/EncodingUtils.java +++ b/src/main/java/org/springframework/hateoas/core/EncodingUtils.java @@ -46,7 +46,7 @@ public class EncodingUtils { try { return UriUtils.encodePath(source.toString(), ENCODING); } catch (Throwable e) { - throw new RuntimeException(e); + throw new IllegalStateException(e); } } @@ -63,7 +63,7 @@ public class EncodingUtils { try { return UriUtils.encodeQueryParam(source.toString(), ENCODING); } catch (Throwable e) { - throw new RuntimeException(e); + throw new IllegalStateException(e); } } @@ -80,7 +80,7 @@ public class EncodingUtils { try { return UriUtils.encodeFragment(source.toString(), ENCODING); } catch (Throwable e) { - throw new RuntimeException(e); + throw new IllegalStateException(e); } } }