Add StoreWriteError error type

This commit is contained in:
Matthias Beyer 2016-04-10 17:52:12 +02:00
parent 23049d02c6
commit f85faca6b3

View file

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