Skip to content

Commit 4f16397

Browse files
authored
Merge pull request #130 from Kurru/add-nullable-annotations
Add nullable annotations on various fields/methods in AlpacaClientException
2 parents becccd9 + 00c3bea commit 4f16397

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/net/jacobpeterson/alpaca/rest/AlpacaClientException.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import okhttp3.Response;
77
import okhttp3.ResponseBody;
88

9+
import javax.annotation.Nullable;
10+
911
public class AlpacaClientException extends Exception {
1012

1113
private static final String CODE_KEY = "code";
@@ -120,18 +122,22 @@ private String parseAPIErrorResponse() {
120122
return messageBuilder.toString();
121123
}
122124

125+
@Nullable
123126
public Integer getResponseStatusCode() {
124127
return responseStatusCode;
125128
}
126129

130+
@Nullable
127131
public String getResponseStatusMessage() {
128132
return responseStatusMessage;
129133
}
130134

135+
@Nullable
131136
public Integer getAPIResponseCode() {
132137
return apiResponseCode;
133138
}
134139

140+
@Nullable
135141
public String getAPIResponseMessage() {
136142
return apiResponseMessage;
137143
}

0 commit comments

Comments
 (0)