[−][src]Module luaparse::error
Fancy error printing.
let buf = "a = 42"; let error = Error::new( Span { start: Position { byte: 0, line: 1, col: 1, }, end: Position { byte: 0, line: 1, col: 1, } }, "unfavorable planet alignment", ); let e = error.with_buffer(buf); // Plain error printing println!("{}", e); // Fancy error printing println!("{:#}", e);
Structs
Error | The error with an associated span. |
ErrorPrinter | A wrapper type encompassing an |
Enums
Severity | The severity of the error. |