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
Io(Error)
Tuple Fields of Io
0: Error
Polar(PolarError)
Tuple Fields of Polar
0: PolarError
Fields of IncorrectFileType
filename: String
Fields of InvariantError
source: InvariantError
TypeError(TypeError)
A TypeError caused by user input.
Tuple Fields of TypeError
0: TypeError
Fields of UnimplementedOperation
operation: String
Fields of InlineQueryFailedError
location: String
InvalidCallError(InvalidCallError)
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.
Auto Trait Implementations
impl !RefUnwindSafe for OsoError
impl !UnwindSafe for OsoError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more