luaur_analysis/methods/
recursion_limit_exception_recursion_limit_exception.rs1use crate::records::internal_compiler_error::InternalCompilerError;
2use crate::records::recursion_limit_exception::RecursionLimitException;
3use alloc::format;
4use alloc::string::String;
5
6impl RecursionLimitException {
7 pub fn new(system: &str) -> Self {
8 Self {
9 base: InternalCompilerError {
10 message: format!("Internal recursion counter limit exceeded in {}", system),
11 module_name: None,
12 location: None,
13 },
14 }
15 }
16}