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:
  • 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 server
      errorMessage - error message extracted from the response entity
      responseEntity - response entity returned by server
  • Method Details

    • getStatusCode

      public int getStatusCode()
      HTTP status code returned by server.
    • getMessage

      @Nullable public @Nullable String getMessage()
      Error message extracted from HTTP response entity.
      Overrides:
      getMessage in class Throwable
    • getResponseEntity

      @Nullable public @Nullable String getResponseEntity()
      HTTP response entity returned by server.