Class BambooSpecsRestRequestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class BambooSpecsRestRequestException
    extends java.lang.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 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.String getMessage()
      Error message extracted from HTTP response entity.
      @Nullable java.lang.String getResponseEntity()
      HTTP response entity returned by server.
      int getStatusCode()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 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.
      • getMessage

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

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