[][src]Enum oso::OsoError

pub enum OsoError {
    Io(Error),
    Polar(PolarError),
    FromPolar,
    IncorrectFileType {
        filename: String,
    },
    InvariantError {
        source: InvariantError,
    },
    TypeError(TypeError),
    UnsupportedOperation {
        operation: String,
        type_name: String,
    },
    UnimplementedOperation {
        operation: String,
    },
    ToPolar,
    DuplicateClassError {
        name: String,
    },
    Custom {
        message: String,
    },
}

oso errors

TODO: fill in other variants

Variants

Io(Error)
Polar(PolarError)
FromPolar
IncorrectFileType

Fields of IncorrectFileType

filename: String
InvariantError

Fields of InvariantError

source: InvariantError
TypeError(TypeError)

A TypeError caused by user input.

UnsupportedOperation

Fields of UnsupportedOperation

operation: Stringtype_name: String
UnimplementedOperation

Fields of UnimplementedOperation

operation: String
ToPolar
DuplicateClassError

Fields of DuplicateClassError

name: String
Custom

TODO: replace all these with proper variants

Fields of Custom

message: String

Trait Implementations

impl Debug for OsoError[src]

impl Display for OsoError[src]

impl Error for OsoError[src]

impl From<Error> for OsoError[src]

impl From<PolarError> for OsoError[src]

Auto Trait Implementations

impl !RefUnwindSafe for OsoError

impl Send for OsoError

impl Sync for OsoError

impl Unpin for OsoError

impl !UnwindSafe for OsoError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.