#[non_exhaustive]pub enum PyPluginError {
SignatureUnrecognized(String),
PythonException {
qname: String,
message: String,
traceback: String,
},
ManifestInvalid(String),
RegistrarRejected(String),
ArrowConversion(String),
Internal(String),
}Expand description
Errors specific to the PyO3 loader.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SignatureUnrecognized(String)
The Python callable’s signature was not recognized (unknown type
name in args / returns, or the callable could not be resolved
by name in the module namespace).
PythonException
A Python Exception was raised inside a plugin callable.
traceback carries the formatted Python traceback string.
Fields
ManifestInvalid(String)
The plugin’s declared manifest did not pass validation (missing required field, unknown type name, duplicate qname).
RegistrarRejected(String)
The host’s PluginRegistrar rejected one of our adapters
(capability missing, qname namespace violation, duplicate).
ArrowConversion(String)
Conversion between an Arrow array and a PyArrow object (via the PyCapsule C Data Interface) failed: unsupported type, capsule shape mismatch, or null pointer.
Internal(String)
Internal / unexpected error.
Trait Implementations§
Source§impl Debug for PyPluginError
impl Debug for PyPluginError
Source§impl Display for PyPluginError
impl Display for PyPluginError
Source§impl Error for PyPluginError
impl Error for PyPluginError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<PluginError> for PyPluginError
impl From<PluginError> for PyPluginError
Source§fn from(err: PluginError) -> Self
fn from(err: PluginError) -> Self
Auto Trait Implementations§
impl Freeze for PyPluginError
impl RefUnwindSafe for PyPluginError
impl Send for PyPluginError
impl Sync for PyPluginError
impl Unpin for PyPluginError
impl UnsafeUnpin for PyPluginError
impl UnwindSafe for PyPluginError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more