Class BambooSpecsRestRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bamboo.specs.exceptions.BambooSpecsRestRequestException
- All Implemented Interfaces:
Serializable
Exception thrown when an unexpected REST response was returned from Bamboo server.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBambooSpecsRestRequestException
(int statusCode, @Nullable String errorMessage, @Nullable String responseEntity) Creates instance of the exception. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Error message extracted fromHTTP response entity
.@Nullable String
HTTP response entity returned by server.int
HTTP status code returned by server.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BambooSpecsRestRequestException
public BambooSpecsRestRequestException(int statusCode, @Nullable @Nullable String errorMessage, @Nullable @Nullable String responseEntity) Creates instance of the exception.- Parameters:
statusCode
- HTTP status code returned by servererrorMessage
- error message extracted from the response entityresponseEntity
- response entity returned by server
-
-
Method Details
-
getStatusCode
public int getStatusCode()HTTP status code returned by server. -
getMessage
Error message extracted fromHTTP response entity
.- Overrides:
getMessage
in classThrowable
-
getResponseEntity
HTTP response entity returned by server.
-