pub enum WorkTextError {
OpenAlex(OpenAlexError),
Filter(FilterError),
Zotero(ZoteroError),
Http(Error),
PdfExtract(String),
DataLab(DatalabError),
NoPdfFound {
work_id: String,
title: Option<String>,
doi: Option<String>,
},
InvalidZoteroKey(String),
}Expand description
Errors from the work_text pipeline.
Variants§
OpenAlex(OpenAlexError)
Filter(FilterError)
Zotero(ZoteroError)
Http(Error)
PdfExtract(String)
DataLab(DatalabError)
NoPdfFound
InvalidZoteroKey(String)
Trait Implementations§
Source§impl Debug for WorkTextError
impl Debug for WorkTextError
Source§impl Display for WorkTextError
impl Display for WorkTextError
Source§impl Error for WorkTextError
impl Error for WorkTextError
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<DatalabError> for WorkTextError
impl From<DatalabError> for WorkTextError
Source§fn from(source: DatalabError) -> Self
fn from(source: DatalabError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for WorkTextError
impl From<Error> for WorkTextError
Source§impl From<FilterError> for WorkTextError
impl From<FilterError> for WorkTextError
Source§fn from(source: FilterError) -> Self
fn from(source: FilterError) -> Self
Converts to this type from the input type.
Source§impl From<OpenAlexError> for WorkTextError
impl From<OpenAlexError> for WorkTextError
Source§fn from(source: OpenAlexError) -> Self
fn from(source: OpenAlexError) -> Self
Converts to this type from the input type.
Source§impl From<ZoteroError> for WorkTextError
impl From<ZoteroError> for WorkTextError
Source§fn from(source: ZoteroError) -> Self
fn from(source: ZoteroError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkTextError
impl !RefUnwindSafe for WorkTextError
impl Send for WorkTextError
impl Sync for WorkTextError
impl Unpin for WorkTextError
impl UnsafeUnpin for WorkTextError
impl !UnwindSafe for WorkTextError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.