Skip to main content

luaur_ast/methods/
parse_error_what.rs

1//! `ParseError::what` (`Ast/src/Parser.cpp:114`).
2//! `const char* what() const noexcept { return message.c_str(); }`.
3
4use crate::records::parse_error::ParseError;
5
6impl ParseError {
7    pub fn what(&self) -> &str {
8        &self.message
9    }
10}