Class BambooSpecsRestRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.atlassian.bamboo.specs.exceptions.BambooSpecsRestRequestException
-
- All Implemented Interfaces:
Serializable
public class BambooSpecsRestRequestException extends RuntimeException
Exception thrown when an unexpected REST response was returned from Bamboo server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BambooSpecsRestRequestException(int statusCode, @Nullable String errorMessage, @Nullable String responseEntity)Creates instance of the exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetMessage()Error message extracted fromHTTP response entity.@Nullable StringgetResponseEntity()HTTP response entity returned by server.intgetStatusCode()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 Detail
-
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 Detail
-
getStatusCode
public int getStatusCode()
HTTP status code returned by server.
-
getMessage
@Nullable public @Nullable String getMessage()
Error message extracted fromHTTP response entity.- Overrides:
getMessagein classThrowable
-
getResponseEntity
@Nullable public @Nullable String getResponseEntity()
HTTP response entity returned by server.
-
-