pub enum DogtagError {
Http(Error),
ApiError {
status: u16,
body: String,
},
ParseError(String),
ConfigError(String),
TlsError(String),
IoError(Error),
NoHealthyBackend,
EnrollmentRejected {
reason: String,
},
EnrollmentPending {
request_id: String,
},
KraError(String),
}Expand description
Errors from Dogtag PKI REST API operations.
Variants§
Http(Error)
HTTP request failed.
ApiError
Dogtag returned a non-success HTTP status.
ParseError(String)
Failed to parse Dogtag response JSON.
ConfigError(String)
Invalid configuration.
TlsError(String)
TLS or certificate error.
IoError(Error)
I/O error reading certificate or key files.
NoHealthyBackend
No healthy CA backend available.
EnrollmentRejected
Enrollment request was rejected by the CA.
EnrollmentPending
Enrollment request is pending approval.
KraError(String)
KRA operation failed.
Trait Implementations§
Source§impl Debug for DogtagError
impl Debug for DogtagError
Source§impl Display for DogtagError
impl Display for DogtagError
Source§impl Error for DogtagError
impl Error for DogtagError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for DogtagError
impl From<Error> for DogtagError
Auto Trait Implementations§
impl Freeze for DogtagError
impl !RefUnwindSafe for DogtagError
impl Send for DogtagError
impl Sync for DogtagError
impl Unpin for DogtagError
impl UnsafeUnpin for DogtagError
impl !UnwindSafe for DogtagError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more