std.errors [core] std.errors.ParseErr pub struct ParseErr { offset: int, kind: int, } — The payload of a Parse(ParseErr) row: WHERE the text stopped being a value of the wanted type, and WHICH way it failed. std.errors.Failure pub struct Failure { offset: int, cause: int, } — The payload of a coarsened row: a failure that happened at a position, remembering the kind of the precise error it came from. std.errors.parse_err pub fn parse_err(offset: int, kind: int) -> ParseErr — A ParseErr at byte offset with kind kind (the header's table). std.errors.byte_offset pub fn byte_offset(e: ParseErr) -> int — The byte offset e reports. std.errors.describe pub fn describe(e: ParseErr) -> str — One line of English for e: what went wrong and where. std.errors.describe_failure pub fn describe_failure(f: Failure) -> str — One line of English for a coarsened failure, naming its cause when it has one. std.errors.coarsen pub fn coarsen(e: ParseErr) -> Failure — e widened into a Failure: the precise parse error becomes "this operation failed here, and here is why it did" — the exemplar of §2's coarsening rule.