Packages

c

com.ing.wbaa.druid.client

HttpStatusException

class HttpStatusException extends IllegalStateException

Indicates that Druid returned a non-OK HTTP status code.

Note: the response entity is eagerly loaded (HttpEntity.Strict). I chose to do so because having to drain or discard a stream on an exception object violates the Principle of Least Surprise. This class does not simply embed the HttpResponse because I found no way to expose the (eager loaded) fields without requiring an execution context.

This class extends IllegalStateException to maintain backwards compatibility.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpStatusException
  2. IllegalStateException
  3. RuntimeException
  4. Exception
  5. Throwable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpStatusException(status: StatusCode, protocol: HttpProtocol, headers: Seq[HttpHeader], entity: Try[Strict])

    status

    the response status.

    protocol

    the response protocol.

    headers

    the response headers.

    entity

    the response entity.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. val entity: Try[Strict]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  11. def getCause(): Throwable
    Definition Classes
    Throwable
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  14. def getMessage(): String
    Definition Classes
    Throwable
  15. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  16. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. val headers: Seq[HttpHeader]
  19. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  25. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  26. def printStackTrace(): Unit
    Definition Classes
    Throwable
  27. val protocol: HttpProtocol
  28. def response: HttpResponse

    Returns an HttpResponse object equivalent to the original response received from Druid.

    Returns an HttpResponse object equivalent to the original response received from Druid.

    Caution: this method throws an exception if this.entity is a failure.

    returns

    an HTTP response object.

    Exceptions thrown

    Throwable if the response entity toStrict failed.

  29. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  30. val status: StatusCode
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from IllegalStateException

Inherited from RuntimeException

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped