Enum lockchain_core::errors::VaultError [−][src]
pub enum VaultError {
AlreadyExists,
InvalidPath,
InvalidName,
InvalidCompoents {
tt: Option<String>,
},
FailedSelfTest,
FailedInitalise,
FailedCreation,
FailedLoading,
FailedClosing,
// some variants omitted
}Variants
AlreadyExistsA vault already exists with that path-id
InvalidPathThe provided path is invalid
InvalidNameThe provided name is invalid
This usually means the backing storage doesn't support some character in the name which can sometimes occur if the name contains special unicode characters that a filesystem doesn't recognise as valid characters.
InvalidCompoentsThe combination of selected components threw a runtime incompatibility error
Fields of InvalidCompoents
tt: Option<String> | Optionally the type that is incompatible (if it can be determined) |
FailedSelfTestVault failed it's checksum self-test
This is problematic because it also means the vault was unable to correct any errors. Either the backing storage has some serious issues or maybe an external sync process that lockchain can't detect is still working.
FailedInitaliseFailed to initialise lockchain vault handler
FailedCreationFailed to create a vault for an unknown reason
FailedLoadingFailed to load a vault for an unknown reason
FailedClosingFailed to close the vault properly.
This could be because the backing storage is no longer available or permisions to write have been revoked.
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StdError for Error[src]
impl StdError for Errorfn description(&self) -> &str1.0.0[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl Display for Error[src]
impl Display for ErrorAuto Trait Implementations
impl Send for VaultError
impl Send for VaultErrorimpl Sync for VaultError
impl Sync for VaultError