pub enum PatientError {
Show 42 variants
InvalidInput(String),
StorageDirCreation(Error),
PatientDirCreation(Error),
CleanupAfterInitialiseFailed {
path: PathBuf,
init_error: Box<PatientError>,
cleanup_error: Error,
},
FileWrite(Error),
FileRead(Error),
Serialization(Error),
Deserialization(Error),
YamlSerialization(Error),
YamlDeserialization(Error),
Openehr(OpenEhrError),
Fhir(FhirError),
Uuid(UuidError),
GitInit(Error),
GitIndex(Error),
GitAdd(Error),
GitWriteTree(Error),
GitFindTree(Error),
GitSignature(Error),
GitCommit(Error),
PemParse(PemError),
EcdsaPrivateKeyParse(Box<dyn Error + Send + Sync>),
EcdsaPublicKeyParse(Box<dyn Error + Send + Sync>),
AuthorCertificatePublicKeyMismatch,
InvalidCommitSignaturePayload,
EcdsaSign(Box<dyn Error + Send + Sync>),
GitCommitBuffer(Error),
GitCommitSigned(Error),
CommitBufferToString(FromUtf8Error),
GitOpen(Error),
GitReference(Error),
GitHead(Error),
GitSetHead(Error),
GitPeel(Error),
InvalidTimestamp,
MissingAuthorName,
MissingAuthorRole,
InvalidAuthorRegistration,
ReservedAuthorTrailerKey,
InvalidCareLocation,
MissingCareLocation,
ReservedCareLocationTrailerKey,
}Expand description
Comprehensive error type for all VPR operations.
This enum represents all possible failure modes in the VPR system, from basic I/O operations to complex cryptographic validation. Each variant includes relevant context and follows consistent naming and documentation patterns.
The error messages are designed to be informative for both developers debugging issues and operators maintaining production systems.
Variants§
InvalidInput(String)
StorageDirCreation(Error)
PatientDirCreation(Error)
CleanupAfterInitialiseFailed
FileWrite(Error)
FileRead(Error)
Serialization(Error)
Deserialization(Error)
YamlSerialization(Error)
YamlDeserialization(Error)
Openehr(OpenEhrError)
Fhir(FhirError)
Uuid(UuidError)
GitInit(Error)
GitIndex(Error)
GitAdd(Error)
GitWriteTree(Error)
GitFindTree(Error)
GitSignature(Error)
GitCommit(Error)
PemParse(PemError)
EcdsaPrivateKeyParse(Box<dyn Error + Send + Sync>)
EcdsaPublicKeyParse(Box<dyn Error + Send + Sync>)
AuthorCertificatePublicKeyMismatch
InvalidCommitSignaturePayload
EcdsaSign(Box<dyn Error + Send + Sync>)
GitCommitBuffer(Error)
GitCommitSigned(Error)
CommitBufferToString(FromUtf8Error)
GitOpen(Error)
GitReference(Error)
GitHead(Error)
GitSetHead(Error)
GitPeel(Error)
InvalidTimestamp
MissingAuthorName
MissingAuthorRole
InvalidAuthorRegistration
ReservedAuthorTrailerKey
InvalidCareLocation
MissingCareLocation
ReservedCareLocationTrailerKey
Trait Implementations§
Source§impl Debug for PatientError
impl Debug for PatientError
Source§impl Display for PatientError
impl Display for PatientError
Source§impl Error for PatientError
impl Error for PatientError
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<FhirError> for PatientError
impl From<FhirError> for PatientError
Source§impl From<OpenEhrError> for PatientError
impl From<OpenEhrError> for PatientError
Auto Trait Implementations§
impl Freeze for PatientError
impl !RefUnwindSafe for PatientError
impl Send for PatientError
impl Sync for PatientError
impl Unpin for PatientError
impl !UnwindSafe for PatientError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request