RequestSuccess

com.sksamuel.elastic4s.RequestSuccess
case class RequestSuccess[U](status: Int, body: Option[String], headers: Map[String, String], result: U) extends Response[U]

Attributes

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

Members list

Value members

Concrete methods

override def error: ElasticError

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

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

Attributes

Definition Classes
final def flatMap[V](f: U => 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: U => V): Response[V]

Inherited methods

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

Attributes

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

Attributes

Inherited from:
Response
final def foreach[V](f: U => 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