RequestFailure

com.sksamuel.elastic4s.RequestFailure
case class RequestFailure(status: Int, body: Option[String], headers: Map[String, String], error: ElasticError) extends Response[Nothing]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Response[Nothing]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final def flatMap[V](f: Nothing => Response[V]): Response[V]
override def isError: Boolean

Returns true if this response is an error state.

Returns true if this response is an error state.

Attributes

Definition Classes
final def map[V](f: Nothing => V): Response[V]
override 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.

Attributes

Definition Classes

Inherited methods

final def fold[V](onError: RequestFailure => V, onSuccess: Nothing => V): V

Attributes

Inherited from:
Response
final def fold[V](ifError: => V)(f: Nothing => V): V

Attributes

Inherited from:
Response
final def foreach[V](f: Nothing => V): Unit

Attributes

Inherited from:
Response
final def isSuccess: Boolean

Returns true if this response was successful

Returns true if this response was successful

Attributes

Inherited from:
Response
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toEither: Either[ElasticError, U]

Attributes

Inherited from:
Response
final def toOption: Option[U]

Attributes

Inherited from:
Response