Enum oso::errors::OsoError [−][src]
pub enum OsoError {
Show 16 variants
Io(Error),
Polar(PolarError),
FromPolar,
IncorrectFileType {
filename: String,
},
InvariantError {
source: InvariantError,
},
TypeError(TypeError),
UnsupportedOperation {
operation: String,
type_name: String,
},
UnimplementedOperation {
operation: String,
},
InlineQueryFailedError {
location: String,
},
InvalidCallError(InvalidCallError),
ToPolar,
DuplicateClassError {
name: String,
},
MissingClassError {
name: String,
},
MissingInstanceError,
Custom {
message: String,
},
ApplicationError {
source: Box<dyn Error + Send + Sync + 'static>,
type_name: Option<String>,
attr: Option<String>,
},
}
Expand description
oso errors
TODO: fill in other variants
Variants
Tuple Fields of Io
0: Error
Tuple Fields of Polar
0: PolarError
Fields of IncorrectFileType
filename: String
Fields of InvariantError
source: InvariantError
A TypeError caused by user input.
Tuple Fields of TypeError
0: TypeError
Fields of UnimplementedOperation
operation: String
Fields of InlineQueryFailedError
location: String
Tuple Fields of InvalidCallError
Fields of DuplicateClassError
name: String
Fields of MissingClassError
name: String
TODO: replace all these with proper variants
Fields of Custom
message: String
Error that was returned from application code (method on a class or instance).
Fields of ApplicationError
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.