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

      • getStatusCode

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

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