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