We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c409e85 commit 7d147fdCopy full SHA for 7d147fd
1 file changed
src/com/namelessmc/NamelessAPI/Request.java
@@ -62,7 +62,9 @@ public Request(URL baseUrl, Action action, String... parameters) {
62
url = new URL(action.toString());
63
}
64
} catch (MalformedURLException e) {
65
- throw new IllegalArgumentException("URL is malformed (" + e.getMessage() + ")");
+ IllegalArgumentException ex = new IllegalArgumentException("URL is malformed (" + e.getMessage() + ")");
66
+ ex.initCause(e);
67
+ throw ex;
68
69
70
0 commit comments