FailedResult

com.github.cloudfiles.core.http.HttpRequestSender.FailedResult
final case class FailedResult(request: SendRequest, cause: Throwable) extends Result

A message class representing a failure response of an HTTP request. The class contains the original request and the exception that was the cause of the failure

Value parameters

cause

the exception causing the request to fail

request

the original request

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ensureResponseEntityDiscarded()(implicit mat: Materializer): FailedResult

Discards the source of the response entity if this is necessary and possible. This function checks whether the ''cause'' of this failed result is a FailedResponseException. If this is the case and if the discard entity mode of the request is ''NEVER'', the entity is discarded. (For other discard modes, this should have been done already by the actor that produced this failed result.)

Discards the source of the response entity if this is necessary and possible. This function checks whether the ''cause'' of this failed result is a FailedResponseException. If this is the case and if the discard entity mode of the request is ''NEVER'', the entity is discarded. (For other discard modes, this should have been done already by the actor that produced this failed result.)

Value parameters

mat

the object to materialize streams

Attributes

Returns

this object

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product