#[non_exhaustive]pub enum Error {
Validation(ValidationError),
Io {
path: PathBuf,
source: Error,
},
Limit {
kind: LimitKind,
observed: u64,
limit: u64,
},
Provider(ProviderError),
Export(ExportError),
}Expand description
Top-level error returned by every public tfparser_core API.
Per the spec’s stability contract ([10-data-model.md § Versioning], the
variants below are #[non_exhaustive] so future phases can add error
kinds without a major bump. Match arms should always include a
catch-all.
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.
Validation(ValidationError)
A validated newtype rejected its input (length, charset, or shape
invariant). The accompanying ValidationError names the field and
the rule.
Io
I/O error reading or writing a path.
Limit
A configured resource limit was exceeded. The accompanying
crate::diagnostic::LimitKind identifies which one.
Fields
Provider(ProviderError)
Provider resolver (Phase 7) raised a fatal error.
Export(ExportError)
Parquet exporter (Phase 3+) raised a fatal error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ExportError> for Error
impl From<ExportError> for Error
Source§fn from(source: ExportError) -> Self
fn from(source: ExportError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for Error
impl From<ProviderError> for Error
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for Error
impl From<ValidationError> for Error
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 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
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP