Add StoreWriteError error type

This commit is contained in:
Matthias Beyer 2016-04-10 17:52:12 +02:00
parent 23049d02c6
commit f85faca6b3
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ pub enum LinkErrorKind {
InternalConversionError,
InvalidUri,
StoreReadError,
StoreWriteError,
}
fn link_error_type_as_str(e: &LinkErrorKind) -> &'static str {
@ -37,6 +38,9 @@ fn link_error_type_as_str(e: &LinkErrorKind) -> &'static str {
&LinkErrorKind::StoreReadError
=> "Store read error",
&LinkErrorKind::StoreWriteError
=> "Store write error",
}
}