#[non_exhaustive]pub enum PdfvError {
Io {
path: Option<PathBuf>,
source: Error,
},
Parse(ParseError),
Profile(ProfileError),
Validation(ValidationError),
Policy(PolicyError),
Repair(RepairError),
Report(ReportError),
Configuration(ConfigError),
}Expand description
Top-level library error.
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.
Io
Input/output failure.
Fields
Parse(ParseError)
Parser failure.
Profile(ProfileError)
Profile loading or selection failure.
Validation(ValidationError)
Validation engine failure.
Policy(PolicyError)
Policy loading or evaluation failure.
Repair(RepairError)
Metadata repair failure.
Report(ReportError)
Report serialization failure.
Configuration(ConfigError)
Configuration failure.
Trait Implementations§
Source§impl Error for PdfvError
impl Error for PdfvError
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<ConfigError> for PdfvError
impl From<ConfigError> for PdfvError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for PdfvError
impl From<ParseError> for PdfvError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for PdfvError
impl From<PolicyError> for PdfvError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<ProfileError> for PdfvError
impl From<ProfileError> for PdfvError
Source§fn from(source: ProfileError) -> Self
fn from(source: ProfileError) -> Self
Converts to this type from the input type.
Source§impl From<RepairError> for PdfvError
impl From<RepairError> for PdfvError
Source§fn from(source: RepairError) -> Self
fn from(source: RepairError) -> Self
Converts to this type from the input type.
Source§impl From<ReportError> for PdfvError
impl From<ReportError> for PdfvError
Source§fn from(source: ReportError) -> Self
fn from(source: ReportError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for PdfvError
impl From<ValidationError> for PdfvError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PdfvError
impl !RefUnwindSafe for PdfvError
impl Send for PdfvError
impl Sync for PdfvError
impl Unpin for PdfvError
impl UnsafeUnpin for PdfvError
impl !UnwindSafe for PdfvError
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