c

com.sksamuel.elastic4s

RequestFailure

case class RequestFailure(status: Int, body: Option[String], headers: Map[String, String], error: ElasticError) extends Response[Nothing] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Response[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestFailure
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Response
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestFailure(status: Int, body: Option[String], headers: Map[String, String], error: ElasticError)

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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val body: Option[String]

    Returns the body included in the HTTP response or None if this response did not include a body.

    Returns the body included in the HTTP response or None if this response did not include a body.

    Definition Classes
    RequestFailureResponse
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val error: ElasticError

    Returns error details as an instance of ElasticError if this is RequestFailure.

    Returns error details as an instance of ElasticError if this is RequestFailure. Otherwise throws an exception.

    Definition Classes
    RequestFailureResponse
  9. final def flatMap[V](f: (Nothing) ⇒ Response[V]): Response[V]
    Definition Classes
    RequestFailureResponse
  10. final def fold[V](onError: (RequestFailure) ⇒ V, onSuccess: (Nothing) ⇒ V): V
    Definition Classes
    Response
  11. final def fold[V](ifError: ⇒ V)(f: (Nothing) ⇒ V): V
    Definition Classes
    Response
  12. final def foreach[V](f: (Nothing) ⇒ V): Unit
    Definition Classes
    Response
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. val headers: Map[String, String]

    Returns any HTTP headers that were included in the response.

    Returns any HTTP headers that were included in the response.

    Definition Classes
    RequestFailureResponse
  15. def isError: Boolean

    Returns true if this response is an error state.

    Returns true if this response is an error state.

    Definition Classes
    RequestFailureResponse
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def isSuccess: Boolean

    Returns true if this response was successful

    Returns true if this response was successful

    Definition Classes
    Response
  18. final def map[V](f: (Nothing) ⇒ V): Response[V]
    Definition Classes
    RequestFailureResponse
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def result: Nothing

    Returns the marshalled response U if this is an instance of RequestSuccess, otherwise throws an exception.

    Returns the marshalled response U if this is an instance of RequestSuccess, otherwise throws an exception.

    Definition Classes
    RequestFailureResponse
  23. val status: Int

    Returns the http status code of the response.

    Returns the http status code of the response.

    Definition Classes
    RequestFailureResponse
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. final def toEither: Either[ElasticError, Nothing]
    Definition Classes
    Response
  26. final def toOption: Option[Nothing]
    Definition Classes
    Response
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Response[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped