RebindException
zio.blocks.schema.RebindException
final class RebindException(val path: DynamicOptic, val typeId: TypeId[_ <: AnyKind], val expectedKind: String) extends RuntimeException
Thrown by DynamicSchema#rebind when its BindingResolver has no binding for a type in the schema. For a node behind a Reflect.Deferred, such as the recursive field of a recursive type, it is thrown later, when that part of the rebound schema is first used. The message names the kind of binding, the full name of the type and the path.
Value parameters
- expectedKind
-
the kind of binding that was looked up:
Record,Variant,Sequence,Map,Dynamic,PrimitiveorWrapper - path
-
the location of the node that needs the binding (a wrapped node has the path of its wrapper)
- typeId
-
the type ID that has no binding
Attributes
- Source
- RebindTransformer.scala
- Graph
-
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article