Module aeonics.core
Package aeonics.util

Class Http.Error

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Http

    public static class Http.Error
    extends java.lang.IllegalStateException
    Represents an HTTP Error code with possibly a body response.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String body
      The response body (may be null)
      int code
      The response code
    • Constructor Summary

      Constructors 
      Constructor Description
      Error​(int code, java.lang.String body)
      Creates a new error
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • code

        public int code
        The response code
      • body

        public java.lang.String body
        The response body (may be null)
    • Constructor Detail

      • Error

        public Error​(int code,
                     java.lang.String body)
        Creates a new error
        Parameters:
        code - the code
        body - the body
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable