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
0: Error
Polar(PolarError)
Tuple Fields
0: PolarError
FromPolar
IncorrectFileType
Fields
filename: String
InvariantError
Fields
source: InvariantError
TypeError(TypeError)
Tuple Fields
0: TypeError
A TypeError caused by user input.
UnsupportedOperation
UnimplementedOperation
Fields
operation: String
InlineQueryFailedError
Fields
location: String
InvalidCallError(InvalidCallError)
Tuple Fields
ToPolar
DuplicateClassError
Fields
name: String
MissingClassError
Fields
name: String
MissingInstanceError
Custom
Fields
message: String
TODO: replace all these with proper variants
ApplicationError
Error that was returned from application code (method on a class or instance).
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