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 {
9                message: String::from("Analysis has been cancelled by user"),
10                module_name: Some(module_name),
11                location: None,
12            },
13        }
14    }
15}