yamleam/error
Error type for yamleam.
YamlError distinguishes three failure modes:
ParseError— the source is not valid YAML (or not valid in the subset we support); includes a free-form message and the 1-indexed line/column of the offending characterUnsupported— the source uses a YAML feature yamleam does not yet implement; thefeaturefield describes what was encountered and the version it’s targeted forDecodeError— the source parsed correctly but a decoder rejected the resulting shape
Types
pub type YamlError {
ParseError(message: String, line: Int, column: Int)
Unsupported(feature: String, line: Int, column: Int)
DecodeError(errors: List(decode.DecodeError))
}
Constructors
-
ParseError(message: String, line: Int, column: Int) -
Unsupported(feature: String, line: Int, column: Int) -
DecodeError(errors: List(decode.DecodeError))