#[non_exhaustive]pub enum DppError {
NotFound(String),
InvalidTransition {
current: String,
required: String,
},
Validation(ValidationErrors),
Signing(String),
Serialisation(String),
RetentionLocked,
Internal(String),
}Expand description
Top-level error type for the DPP domain.
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.
NotFound(String)
InvalidTransition
Validation(ValidationErrors)
Signing(String)
Serialisation(String)
RetentionLocked
Returned when an attempt is made to delete or overwrite a passport that has been published and is therefore subject to EU ESPR retention obligations. Published passports must remain accessible for the legally defined period under the applicable delegated act (typically 10–15 years).
Internal(String)
Trait Implementations§
Source§impl Error for DppError
impl Error for DppError
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()
Source§impl From<ValidationErrors> for DppError
impl From<ValidationErrors> for DppError
Source§fn from(errors: ValidationErrors) -> Self
fn from(errors: ValidationErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DppError
impl RefUnwindSafe for DppError
impl Send for DppError
impl Sync for DppError
impl Unpin for DppError
impl UnsafeUnpin for DppError
impl UnwindSafe for DppError
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