ErrorBuilder

zio.blocks.endpoint.EndpointUnionErrorBuilder.ErrorBuilder
See theErrorBuilder companion object
trait ErrorBuilder[Err, E2]

Endpoint-specific helper for orOutError.

This is intentionally narrower than the generic combinators typeclasses: it handles the domain rule that the first orOutError replaces the initial Unit error channel, while subsequent calls build fallback codecs backed by Scala 3 union derivation from zio.blocks.combinators.Unions.

Attributes

Companion
object
Source
EndpointUnionErrorBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type Out

Value members

Abstract methods

def add(existing: HttpCodec[Response, Err], next: HttpCodec[Response, E2]): HttpCodec[Response, Out]