Class HttpException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class HttpException
    extends RuntimeException
                        

    Exception for an HTTP response that is unexpected.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpException(Response response)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int code() HTTP status code.
      String message() HTTP status message.
      Response response() The HTTP response.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpException

        HttpException(Response response)
    • Method Detail

      • code

         int code()

        HTTP status code.

      • message

        @NonNull() String message()

        HTTP status message.

      • response

        @NonNull() Response response()

        The HTTP response.