We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db0399f commit f85fc4fCopy full SHA for f85fc4f
util/src/main/java/io/kubernetes/client/Exec.java
@@ -27,6 +27,7 @@
27
import java.io.InputStreamReader;
28
import java.io.OutputStream;
29
import java.io.Reader;
30
+import java.io.UnsupportedEncodingException;
31
import java.lang.reflect.Type;
32
import java.net.URLEncoder;
33
import java.util.HashMap;
@@ -84,7 +85,7 @@ private String makePath(
84
85
for (int i = 0; i < command.length; i++) {
86
try {
87
command[i] = URLEncoder.encode(command[i], "UTF-8");
- } catch (Exception ex) {
88
+ } catch (UnsupportedEncodingException ex) {
89
throw new RuntimeException("some thing wrong happend: " + ex.getMessage());
90
}
91
0 commit comments