#[non_exhaustive]pub enum RhaiError {
InvalidPlugin(String),
ManifestInvalid(String),
ParseFailed(String),
RuntimeError(String),
Conversion(String),
Internal(String),
}Expand description
Errors specific to the Rhai loader.
Mirrors uni_plugin_extism::ExtismError in shape so the three
loaders surface comparable failure modes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidPlugin(String)
The supplied Rhai source failed to compile, or did not declare a
uni_manifest() function returning the expected shape.
ManifestInvalid(String)
The plugin’s declared manifest did not pass validation (unknown ABI, missing required fields, unknown type names).
ParseFailed(String)
Rhai source failed to parse — the engine could not produce an AST. The wrapped string includes Rhai’s file:line:col context.
RuntimeError(String)
Runtime error during script execution (type mismatch, arithmetic error, host-fn panic). Wraps Rhai’s runtime error message.
Conversion(String)
Conversion between Rhai Dynamic and Arrow ScalarValue /
ArrayRef failed (unsupported type, precision loss, null handling).
Internal(String)
Internal / unexpected error.
Trait Implementations§
Source§impl Error for RhaiError
impl Error for RhaiError
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()
Auto Trait Implementations§
impl Freeze for RhaiError
impl RefUnwindSafe for RhaiError
impl Send for RhaiError
impl Sync for RhaiError
impl Unpin for RhaiError
impl UnsafeUnpin for RhaiError
impl UnwindSafe for RhaiError
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