The reason an optic could not reach its focus. The *OrFail methods of Optic return it in a Left, Optic#check returns it, and so does SchemaExpr#eval when evaluation fails.
It holds one or more problems (OpticCheck.Single). Each one is an error (OpticCheck.Error: another case of a variant, a failing wrapper, a failed conversion) or a warning (OpticCheck.Warning: an empty collection, an index past the end, a missing key). Each problem carries the path of the whole optic and the path up to the step where it was found, rendered in its message with DynamicOptic#toScalaString:
During attempted access at .tags.at(0), encountered a sequence out of bounds at .tags.at(0): index is 0, but size is 0
An OpticCheck is also an exception without a stack trace, whose message is message.
Attributes
- See also
- Companion
- object
- Source
- OpticCheck.scala
- Graph
-
- Supertypes
-
trait Producttrait Equalstrait NoStackTraceclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns a check with the problems of this one followed by those of other.
Returns a check with the problems of this one followed by those of other.
Attributes
- Source
- OpticCheck.scala
Returns message.
Returns true if at least one problem is an error.
Returns true if at least one problem is a warning.
The messages of all problems, one per line.
Inherited methods
Attributes
- Inherited from:
- Throwable
Attributes
- Definition Classes
-
NoStackTrace -> Throwable
- Inherited from:
- NoStackTrace
- Source
- NoStackTrace.scala
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
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
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
Attributes
- Inherited from:
- Throwable