Skip to main content

luaur_analysis/methods/
recursion_limit_exception_recursion_limit_exception.rs

1use 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::new(
10                format!("Internal recursion counter limit exceeded in {}", system),
11                None,
12                None,
13            ),
14        }
15    }
16}