File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/springframework/hateoas/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public static String encodePath(Object source) {
46
46
try {
47
47
return UriUtils .encodePath (source .toString (), ENCODING );
48
48
} catch (Throwable e ) {
49
- throw new RuntimeException (e );
49
+ throw new IllegalStateException (e );
50
50
}
51
51
}
52
52
@@ -63,7 +63,7 @@ public static String encodeParameter(Object source) {
63
63
try {
64
64
return UriUtils .encodeQueryParam (source .toString (), ENCODING );
65
65
} catch (Throwable e ) {
66
- throw new RuntimeException (e );
66
+ throw new IllegalStateException (e );
67
67
}
68
68
}
69
69
@@ -80,7 +80,7 @@ public static String encodeFragment(Object source) {
80
80
try {
81
81
return UriUtils .encodeFragment (source .toString (), ENCODING );
82
82
} catch (Throwable e ) {
83
- throw new RuntimeException (e );
83
+ throw new IllegalStateException (e );
84
84
}
85
85
}
86
86
}
You can’t perform that action at this time.
0 commit comments