Skip to content

Commit 512be6a

Browse files
committed
Exposing convenient method to get HTTP status response code in GraphServiceException
1 parent f219704 commit 512be6a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/com/microsoft/graph/http/GraphServiceException.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ protected GraphServiceException(final String method,
152152
public String getMessage() {
153153
return getMessage(verbose);
154154
}
155+
156+
/**
157+
* Gets the The HTTP status code
158+
*
159+
* @return The HTTP status response code
160+
*/
161+
public int getResponseCode() {
162+
return responseCode;
163+
}
155164

156165
/**
157166
* Gets the message for this exception

0 commit comments

Comments
 (0)