imag/libimagentrylink/src/error.rs

17 lines
699 B
Rust
Raw Normal View History

generate_error_module!(
generate_error_types!(LinkError, LinkErrorKind,
EntryHeaderReadError => "Error while reading an entry header",
EntryHeaderWriteError => "Error while writing an entry header",
ExistingLinkTypeWrong => "Existing link entry has wrong type",
LinkTargetDoesNotExist => "Link target does not exist in the store",
InternalConversionError => "Error while converting values internally",
InvalidUri => "URI is not valid",
StoreReadError => "Store read error",
StoreWriteError => "Store write error"
);
);
2016-02-03 14:47:14 +00:00
pub use self::error::LinkError;
pub use self::error::LinkErrorKind;