use crate::base_types::TgqeErrorInfo;
use crate::enums::TgqeLevelFilter;
impl TgqeErrorInfo {
pub fn new(
err_type: &str,
expect: &str,
got: &str,
level: TgqeLevelFilter,
) -> Self {
Self {
err_type: err_type.to_string(),
expect: expect.to_string(),
got: got.to_string(),
padding_1: -2,
padding_2: -2,
level,
recoverable: false,
}
}
pub fn with_recoverable(
mut self,
recoverable: bool,
) -> Self {
self.recoverable = recoverable;
self
}
}