ErrorSchema

smithy4s.schema.ErrorSchema
See theErrorSchema companion object
case class ErrorSchema[E]

An ErrorSchema is similar to a UnionSchema in that it exposes alternatives and ordinal values, and therefore can be manipulated similarly to UnionSchemas.

Additionally, it carries functions to go from E to Throwable and vice-versa. This is used by interpreters to inject data into error channels of effect types, or to recover data from an error-channel prior to serialisation.

Attributes

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

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

final val alternatives: Vector[Alt[E, _]]
final val ordinal: E => Int