#[non_exhaustive]pub enum Error {
NotImplemented {
operation: &'static str,
},
GateFailed {
reason: String,
},
Invalid {
reason: String,
},
SyncConflict {
reason: String,
},
}Expand description
Everything an onevcs operation can fail with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotImplemented
The request parsed and validated, but the seam behind it has no implementation yet. The CLI reports this as exit code 70.
GateFailed
A verification gate, or the host’s required checks, reported failure. The CLI reports this as exit code 1.
Invalid
Input was rejected at a trust boundary — a malformed registry document, a rules file that does not parse, an unusable argument. The CLI reports this as exit code 2.
SyncConflict
The base moved under a publication and the bounded resolve-and-requeue did not converge. The CLI reports this as exit code 3.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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