Enum obsidian_export::ExportError[][src]

#[non_exhaustive]pub enum ExportError {
    ReadError {
        path: PathBuf,
        source: Error,
    },
    WriteError {
        path: PathBuf,
        source: Error,
    },
    WalkDirError {
        path: PathBuf,
        source: Error,
    },
    PathDoesNotExist {
        path: PathBuf,
    },
    CharacterEncodingError {
        source: Utf8Error,
    },
    RecursionLimitExceeded {
        file_tree: Vec<PathBuf>,
    },
    FileExportError {
        path: PathBuf,
        source: Box<ExportError>,
    },
}

ExportError represents all errors which may be returned when using this crate.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadError

This occurs when a read IO operation fails.

Fields of ReadError

path: PathBufsource: Error
WriteError

This occurs when a write IO operation fails.

Fields of WriteError

path: PathBufsource: Error
WalkDirError

This occurs when an error is encountered while trying to walk a directory.

Fields of WalkDirError

path: PathBufsource: Error
PathDoesNotExist

This occurs when an operation is requested on a file or directory which does not exist.

Fields of PathDoesNotExist

path: PathBuf
CharacterEncodingError

This error may occur when invalid UTF8 is encountered.

Currently, operations which assume UTF8 perform lossy encoding however.

Fields of CharacterEncodingError

source: Utf8Error
RecursionLimitExceeded

This error occurs when embedded notes are too deeply nested or cause an infinite loop.

When this happens, file_tree contains a list of all the files which were processed leading up to this error.

Fields of RecursionLimitExceeded

file_tree: Vec<PathBuf>
FileExportError

This occurs when a file fails to export successfully.

Fields of FileExportError

path: PathBufsource: Box<ExportError>

Trait Implementations

impl Debug for ExportError[src]

impl Display for ExportError[src]

impl Error for ExportError where
    Self: Debug + Display
[src]

impl ErrorCompat for ExportError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsErrorSource for T where
    T: 'static + Error
[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> Pointable for T

type Init = T

The type for initializers.

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.