HttpErrorSelector

smithy4s.http.HttpErrorSelector$

Utility function to help find the decoder matching a certain discriminator This is useful when deserializing on the client side of a request/response round trip.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[F[_] : Covariant, E](maybeErrorable: Option[Errorable[E]], compiler: CachedSchemaCompiler[F]): HttpDiscriminator => Option[F[E]]

Given a vector of alternatives, and a schema compiler, selects the decoder associated to the given discriminator.

Given a vector of alternatives, and a schema compiler, selects the decoder associated to the given discriminator.

Value parameters

compiler:

the compiler for a given decoder

maybeErrorable:

the Errorable instance associated to an operation

Attributes

def asThrowable[F[_] : Covariant, E](maybeErrorable: Option[Errorable[E]], compiler: CachedSchemaCompiler[F]): HttpDiscriminator => Option[F[Throwable]]

Given a vector of alternatives, and a schema compiler, selects the decoder associated to the given discriminator, and maps it so that it lifts a throwable

Given a vector of alternatives, and a schema compiler, selects the decoder associated to the given discriminator, and maps it so that it lifts a throwable

Value parameters

compiler:

the compiler for a given decoder

maybeErrorable:

the Errorable instance associated to an operation

Attributes