Abstract base class for YAML binary codecs that serialize/deserialize values of type A to and from YAML representations.
Type parameters
- A
-
the type this codec handles
Attributes
- Companion
- object
- Source
- YamlCodec.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Decodes the specified input into a value of the target type.
Decodes the specified input into a value of the target type.
Value parameters
- input
-
The input data that needs to be decoded.
Attributes
- Returns
-
Either a
SchemaErrorindicating the decoding failure, or a decoded value. - Definition Classes
- Source
- YamlCodec.scala
Attributes
- Source
- YamlCodec.scala
Attributes
- Source
- YamlCodec.scala
Attempts to decode a value of type A from the string representation.
Attempts to decode a value of type A from the string representation.
Attributes
- Source
- YamlCodec.scala
Encodes the given value into the specified output representation.
Encodes the given value into the specified output representation.
Value parameters
- output
-
The target output into which the value will be encoded.
- value
-
The value to be encoded.
Attributes
- Returns
-
This method does not return a value.
- Definition Classes
- Source
- YamlCodec.scala
Attributes
- Source
- YamlCodec.scala
Converts a value to its string representation for use as a YAML key.
Converts a value to its string representation for use as a YAML key.
Attributes
- Source
- YamlCodec.scala
Attributes
- Source
- YamlCodec.scala
Throws a YamlCodecError wrapping the given error and adding a span.
Throws a YamlCodecError wrapping the given error and adding a span.
Value parameters
- error
-
the error to wrap
- span
-
the span to add to the error
Attributes
- Throws
-
YamlCodecError
always
- Source
- YamlCodec.scala
Throws a YamlCodecError wrapping the given error and adding two spans.
Throws a YamlCodecError wrapping the given error and adding two spans.
Value parameters
- error
-
the error to wrap
- span1
-
the first span to add to the error
- span2
-
the second span to add to the error
Attributes
- Throws
-
YamlCodecError
always
- Source
- YamlCodec.scala
Throws a YamlCodecError with the given error message.
Throws a YamlCodecError with the given error message.
Value parameters
- message
-
the error message
Attributes
- Throws
-
YamlCodecError
always
- Source
- YamlCodec.scala