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 c4a22b1 commit a3677a9Copy full SHA for a3677a9
src/main/java/com/github/stachu540/hirezapi/api/rest/RestClient.java
@@ -8,9 +8,10 @@ public class RestClient {
8
private final RestTemplate rest = new RestTemplate();
9
private final Authentication authentication;
10
11
- { rest.setErrorHandler(new RestErrorHandler()); }
12
-
13
- public RestClient(Authentication authentication) {this.authentication = authentication;}
+ public RestClient(Authentication authentication) {
+ this.authentication = authentication;
+ this.rest.setErrorHandler(new RestErrorHandler());
14
+ }
15
16
public <O extends Object> O request(String endpoint, Class<O> model, String... args) {
17
String url = authentication.getUrl(endpoint, args);
0 commit comments