mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pv*: Use pv_core::Error in pvapconfig
For the parts of pvapconfig::ap to be moved to pv_core, use pv_core::Result<a>, i.e. Result<a, pv_core::Error>, instead of Result<a, String>. Signed-off-by: Jakob Naucke <naucke@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
272eb5ad8c
commit
e1245ed4e5
@@ -77,6 +77,36 @@ pub enum Error {
|
||||
)]
|
||||
InvalidRetrievableSecretType { id: SecretId, size: usize },
|
||||
|
||||
#[error("Unknown bind state '{0}'.")]
|
||||
UnknownBindState(String),
|
||||
|
||||
#[error("Unknown association state '{0}'.")]
|
||||
UnknownAssocState(String),
|
||||
|
||||
#[error(
|
||||
"APQN({card:02x},{domain:04x}) is associated with {actual} but it should be {desired}."
|
||||
)]
|
||||
WrongAssocState {
|
||||
card: u32,
|
||||
domain: u32,
|
||||
desired: u16,
|
||||
actual: u16,
|
||||
},
|
||||
|
||||
#[error("Timeout on {0}.")]
|
||||
Timeout(String),
|
||||
|
||||
#[error(
|
||||
"CCA card {0:02x} cannot be used with Secure Execution, as this combination is unsupported"
|
||||
)]
|
||||
CcaSeIncompatible(u32),
|
||||
|
||||
#[error("APQN({card:02x}{domain:04x}) is offline.")]
|
||||
ApOffline { card: u32, domain: u32 },
|
||||
|
||||
#[error("Failure parsing {subject} '{content}'.")]
|
||||
ParseError { subject: String, content: String },
|
||||
|
||||
// errors from other crates
|
||||
#[error(transparent)]
|
||||
Io(#[from] std::io::Error),
|
||||
|
||||
Reference in New Issue
Block a user