luaur_ast/records/parse_errors.rs
1use crate::records::parse_error::ParseError;
2use alloc::string::String;
3use alloc::vec::Vec;
4
5#[derive(Debug, Clone)]
6pub struct ParseErrors {
7 pub(crate) errors: Vec<ParseError>,
8 pub(crate) message: String,
9}
10
11impl core::fmt::Display for ParseErrors {
12 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
13 f.write_str(&self.message)
14 }
15}
16
17impl std::error::Error for ParseErrors {}