JsonCodecError
zio.blocks.schema.json.JsonCodecError
class JsonCodecError(var spans: List[Node], message: String) extends Throwable
A custom exception class without the stack trace representing errors that occur during JSON encoding/decoding operations.
The JsonCodecError class extends Throwable to provide enhanced error reporting for scenarios involving JSON encoding or decoding errors where dynamic data paths (spans) are involved. These spans represent the stack of nodes traversed within the data structure when the error occurred. So that top-level spans are at the end of the list.
Value parameters
- message
-
A descriptive message providing additional context or details about the error.
- spans
-
A list of
DynamicOptic.Nodeobjects representing the traversal path within the data structure where the error occurred. Each node encapsulates information about a specific element (field, index, etc.).
Attributes
- Source
- JsonCodecError.scala
- Graph
-
- Supertypes
Members list
In this article