|
@@ -11,6 +11,9 @@ pub enum ClientFailed {
|
|
|
UnvalidAmount(u64),
|
|
UnvalidAmount(u64),
|
|
|
UnableToGetDepositAddress,
|
|
UnableToGetDepositAddress,
|
|
|
UnableToGetWithdrawAddress,
|
|
UnableToGetWithdrawAddress,
|
|
|
|
|
+ DoNotHaveCashierPublicKey,
|
|
|
|
|
+ DoNotHavePublicKey,
|
|
|
|
|
+ DoNotHavePrivateKey,
|
|
|
EmptyPassword,
|
|
EmptyPassword,
|
|
|
ClientError(String),
|
|
ClientError(String),
|
|
|
}
|
|
}
|
|
@@ -33,6 +36,9 @@ impl fmt::Display for ClientFailed {
|
|
|
ClientFailed::UnableToGetWithdrawAddress => {
|
|
ClientFailed::UnableToGetWithdrawAddress => {
|
|
|
f.write_str("Unable to get withdraw address")
|
|
f.write_str("Unable to get withdraw address")
|
|
|
}
|
|
}
|
|
|
|
|
+ ClientFailed::DoNotHaveCashierPublicKey => f.write_str("Don't have cashier public key"),
|
|
|
|
|
+ ClientFailed::DoNotHavePublicKey => f.write_str("Don't have public key"),
|
|
|
|
|
+ ClientFailed::DoNotHavePrivateKey => f.write_str("Don't have private key"),
|
|
|
ClientFailed::EmptyPassword => f.write_str("Password is empty. Cannot create database"),
|
|
ClientFailed::EmptyPassword => f.write_str("Password is empty. Cannot create database"),
|
|
|
ClientFailed::ClientError(i) => {
|
|
ClientFailed::ClientError(i) => {
|
|
|
write!(f, "ClientError: {}", i)
|
|
write!(f, "ClientError: {}", i)
|