UnexpectedCase

zio.blocks.schema.OpticCheck.UnexpectedCase
case class UnexpectedCase(expectedCase: String, actualCase: String, full: DynamicOptic, prefix: DynamicOptic, actualValue: Any) extends Error

A prism step found another case of the variant. expectedCase and actualCase are case names. actualValue is the value at that step; in a check from SchemaExpr#eval, it is the whole input.

Attributes

Source
OpticCheck.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Error
trait Single
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def message: String

A sentence that describes the problem and names both paths.

A sentence that describes the problem and names both paths.

Attributes

Source
OpticCheck.scala

Inherited methods

def isError: Boolean

Returns true if this problem is an OpticCheck.Error.

Returns true if this problem is an OpticCheck.Error.

Attributes

Inherited from:
Single
Source
OpticCheck.scala
def isWarning: Boolean

Returns true if this problem is an OpticCheck.Warning.

Returns true if this problem is an OpticCheck.Warning.

Attributes

Inherited from:
Single
Source
OpticCheck.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala