Skip to content

Commit

Permalink
Remove failure crate from aries-vcx-agent
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
  • Loading branch information
mirgee committed Dec 2, 2022
1 parent ea09de3 commit bbad320
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agents/rust/aries-vcx-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ version = "0.1.0"
edition = "2021"

[dependencies]
failure = "0.1.8"
serde = "1.0.145"
aries-vcx = { path = "../../../aries_vcx" }
derive_builder = "0.11.2"
serde_json = "1.0.85"
log = "0.4.17"
uuid = "1.2.1"
thiserror = "1.0.37"
20 changes: 9 additions & 11 deletions agents/rust/aries-vcx-agent/src/error/error_kind.rs
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,
}

0 comments on commit bbad320

Please sign in to comment.