-
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.
Replace failure crate with thiserror (#684)
* Remove failure crate from aries-vcx-agent * Remove failure crate from messages * Remove failure crate from aries_vcx * Remove failure crate from agency_client * Remove failure crate from libvcx Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
- Loading branch information
Showing
15 changed files
with
474 additions
and
651 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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, | ||
} |
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
Oops, something went wrong.