Skip to main content

luaur_analysis/methods/
user_cancel_error_user_cancel_error.rs

1use crate::records::internal_compiler_error::InternalCompilerError;
2use crate::records::user_cancel_error::UserCancelError;
3use alloc::string::String;
4
5impl UserCancelError {
6    pub fn new(module_name: String) -> Self {
7        Self {
8            base: InternalCompilerError::new(
9                String::from("Analysis has been cancelled by user"),
10                Some(module_name),
11                None,
12            ),
13        }
14    }
15}