yamleam/error

Error type for yamleam.

YamlError distinguishes three failure modes:

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))

Values

pub fn to_string(err: YamlError) -> String

Format an error as a single human-readable line for logging or display. Intentionally simple — consumers wanting structured output should pattern-match on the variants themselves.

Search Document