Struct valkyrie_errors::ValkyrieError
source · pub struct ValkyrieError {
pub kind: ValkyrieErrorKind,
pub level: ReportKind,
}Fields§
§kind: ValkyrieErrorKind§level: ReportKindImplementations§
source§impl ValkyrieError
impl ValkyrieError
pub fn as_report(&self) -> ValkyrieReport
source§impl ValkyrieError
impl ValkyrieError
pub fn duplicate_type(name: String, this: FileSpan, last: FileSpan) -> Self
pub fn duplicate_function(name: String, this: FileSpan, last: FileSpan) -> Self
pub fn duplicate_variable(name: String, this: FileSpan, last: FileSpan) -> Self
source§impl ValkyrieError
impl ValkyrieError
pub fn runtime_error(message: impl Into<String>) -> Self
Trait Implementations§
source§impl Debug for ValkyrieError
impl Debug for ValkyrieError
source§impl Display for ValkyrieError
impl Display for ValkyrieError
source§impl Error for ValkyrieError
impl Error for ValkyrieError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()