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, Primitive or Wrapper

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 Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

final def addSuppressed(x$0: Throwable): Unit

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
def printStackTrace(): Unit

Attributes

Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable

Concrete fields

val expectedKind: String

Attributes

Source
RebindTransformer.scala

Attributes

Source
RebindTransformer.scala
val typeId: TypeId[_ <: AnyKind]

Attributes

Source
RebindTransformer.scala