pub enum ErrorImpl {
Show 18 variants
Message(String, Option<Pos>),
Libyml(Error),
IoError(Error),
FromUtf8(FromUtf8Error),
EndOfStream,
MoreThanOneDocument,
RecursionLimitExceeded(Mark),
RepetitionLimitExceeded,
BytesUnsupported,
UnknownAnchor(Mark),
SerializeNestedEnum,
ScalarInMerge,
TaggedInMerge,
ScalarInMergeElement,
SequenceInMergeElement,
EmptyTag,
FailedToParseNumber,
Shared(Arc<ErrorImpl>),
}
Expand description
The internal representation of an error.
This enum represents various errors that can occur during YAML serialization or deserialization,
including I/O errors, UTF-8 conversion errors, and errors originating from the libyml
library.
Variants§
Message(String, Option<Pos>)
A generic error message with an optional position.
Libyml(Error)
An error originating from the libyml
library.
IoError(Error)
An I/O error.
FromUtf8(FromUtf8Error)
An error encountered while converting a byte slice to a string using UTF-8 encoding.
EndOfStream
An error indicating that the end of the YAML stream was reached unexpectedly.
MoreThanOneDocument
An error indicating that more than one YAML document was encountered.
RecursionLimitExceeded(Mark)
An error indicating that the recursion limit was exceeded.
RepetitionLimitExceeded
An error indicating that the repetition limit was exceeded.
BytesUnsupported
An error indicating that byte-based YAML is unsupported.
UnknownAnchor(Mark)
An error indicating that an unknown anchor was encountered.
SerializeNestedEnum
An error indicating that serializing a nested enum is not supported.
ScalarInMerge
An error indicating that a scalar value was encountered in a merge operation.
TaggedInMerge
An error indicating that a tagged value was encountered in a merge operation.
ScalarInMergeElement
An error indicating that a scalar value was encountered in a merge element.
SequenceInMergeElement
An error indicating that a sequence was encountered in a merge element.
EmptyTag
An error indicating that an empty tag was encountered.
FailedToParseNumber
An error indicating that parsing a number failed.
A shared error implementation.