servant-client-core-0.18.3: Core functionality and class for client function generation for servant APIs
Safe HaskellNone
LanguageHaskell2010

Servant.Client.Core.ClientError

Synopsis

Documentation

data ClientError Source #

A type representing possible errors in a request

Note that this type substantially changed in 0.12.

Constructors

FailureResponse (RequestF () (BaseUrl, ByteString)) Response

The server returned an error response including the failing request. requestPath includes the BaseUrl and the path of the request.

DecodeFailure Text Response

The body could not be decoded at the expected type

UnsupportedContentType MediaType Response

The content-type of the response is not supported

InvalidContentTypeHeader Response

The content-type header is invalid

ConnectionError SomeException

There was a connection error, and no response was received

Instances

Instances details
Eq ClientError Source # 
Instance details

Defined in Servant.Client.Core.ClientError

Show ClientError Source # 
Instance details

Defined in Servant.Client.Core.ClientError

Generic ClientError Source # 
Instance details

Defined in Servant.Client.Core.ClientError

Associated Types

type Rep ClientError :: Type -> Type #

Exception ClientError Source # 
Instance details

Defined in Servant.Client.Core.ClientError

NFData ClientError Source #

Note: an exception in ConnectionError might not be evaluated fully, We only rnf its showed value.

Instance details

Defined in Servant.Client.Core.ClientError

Methods

rnf :: ClientError -> () #

type Rep ClientError Source # 
Instance details

Defined in Servant.Client.Core.ClientError