public class BambooSpecsRestRequestException extends RuntimeException
Constructor and Description |
---|
BambooSpecsRestRequestException(int statusCode,
String errorMessage,
String responseEntity)
Creates instance of the exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Error message extracted from
HTTP response entity . |
String |
getResponseEntity()
HTTP response entity returned by server.
|
int |
getStatusCode()
HTTP status code returned by server.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BambooSpecsRestRequestException(int statusCode, @Nullable String errorMessage, @Nullable String responseEntity)
statusCode
- HTTP status code returned by servererrorMessage
- error message extracted from the response entityresponseEntity
- response entity returned by serverpublic int getStatusCode()
@Nullable public String getMessage()
HTTP response entity
.getMessage
in class Throwable
@Nullable public String getResponseEntity()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.