forked from AbleOS/ableos_userland
19 lines
341 B
Rust
19 lines
341 B
Rust
use crate::{Error, LocationInFile};
|
|
|
|
/// Exit a program
|
|
pub fn exit(error_code: Option<impl Error>) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
pub struct GenericError {
|
|
pub error_id: u128,
|
|
// location: LocationInFile<'a>,
|
|
// a_lil_message_as_a_treat: &'a str,
|
|
}
|
|
|
|
impl Error for GenericError {
|
|
fn id(&self) -> u128 {
|
|
self.error_id
|
|
}
|
|
}
|