-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove failure crate from aries-vcx-agent
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
- Loading branch information
Showing
3 changed files
with
16 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
use failure::Fail; | ||
|
||
#[derive(Copy, Clone, Eq, PartialEq, Debug, Fail)] | ||
#[derive(Copy, Clone, Eq, PartialEq, Debug, thiserror::Error)] | ||
pub enum AgentErrorKind { | ||
#[fail(display = "AriesVCX error")] | ||
#[error("AriesVCX error")] | ||
GenericAriesVcxError, | ||
#[fail(display = "Failed to get invite details")] | ||
#[error("Failed to get invite details")] | ||
InviteDetails, | ||
#[fail(display = "No object found with specified ID")] | ||
#[error("No object found with specified ID")] | ||
NotFound, | ||
#[fail(display = "Unable to lock storage")] | ||
#[error("Unable to lock storage")] | ||
LockError, | ||
#[fail(display = "Serialization error")] | ||
#[error("Serialization error")] | ||
SerializationError, | ||
#[fail(display = "Invalid arguments passed")] | ||
#[error("Invalid arguments passed")] | ||
InvalidArguments, | ||
#[fail(display = "Credential definition already exists on the ledger")] | ||
#[error("Credential definition already exists on the ledger")] | ||
CredDefAlreadyCreated, | ||
#[fail(display = "Mediated connections not configured")] | ||
#[error("Mediated connections not configured")] | ||
MediatedConnectionServiceUnavailable, | ||
} |