pub enum Error<'a> {
UnknownVariable {
name: &'a str,
},
IncompatibleTypeOp {
op: &'static str,
ty: &'static str,
},
IncompatibleTypesOp {
op: &'static str,
left_ty: &'static str,
right_ty: &'static str,
},
Custom {
reason: String,
},
CustomStatic {
reason: &'static str,
},
MissingParameter {
position: i32,
name: &'static str,
},
}
Expand description
The error type used in FunGUI
Variants§
UnknownVariable
An unknown variable was used
IncompatibleTypeOp
An incompatible type was used with the given operator
IncompatibleTypesOp
Fields
An incompatible pair of types was used with the given operator
Custom
A custom reason
CustomStatic
A custom reason without allocating
MissingParameter
The parameter at the given position is missing