pub struct Error { /* private fields */ }
Expand description
An error which may be any of ErrorKind
.
See Dart_Handle
’s documentation for more information
about error handles.
Implementations§
Source§impl Error
impl Error
pub fn get_msg(&self) -> CString
pub fn is_exception(&self) -> bool
pub fn get_exception(&self) -> Option<UnverifiedDartHandle>
pub fn get_stack_trace(&self) -> Option<UnverifiedDartHandle>
pub fn new_api(message: &str) -> Result<Error, NulError>
pub fn new_compilation(message: &str) -> Result<Error, NulError>
pub fn new_unhandled_exception(exception: UnverifiedDartHandle) -> Error
pub fn propagate_error(self) -> Infallible
pub fn throw_self(self) -> Result<Infallible, Error>
pub fn rethrow_self( self, stacktrace: UnverifiedDartHandle, ) -> Result<Infallible, Error>
Trait Implementations§
Source§impl DartHandle for Error
impl DartHandle for Error
Source§fn handle(&self) -> Dart_Handle
fn handle(&self) -> Dart_Handle
Gets the raw handle from a smart wrapper.
Source§fn safe_handle(&self) -> UnverifiedDartHandle
fn safe_handle(&self) -> UnverifiedDartHandle
Gets the smart handle from a smart wrapper.
Source§fn from_handle(
handle: UnverifiedDartHandle,
) -> Result<Self, UnverifiedDartHandle>
fn from_handle( handle: UnverifiedDartHandle, ) -> Result<Self, UnverifiedDartHandle>
Creates a smart wrapper from a smart handle. Read more
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin 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