pub struct JException {
pub class: JExceptionClass,
pub error: Rc<dyn Error>,
}
Fields§
§class: JExceptionClass
§error: Rc<dyn Error>
Implementations§
Source§impl JException
impl JException
pub fn from_class_and_msg(class: JExceptionClass, msg: &str) -> Self
pub fn from_std<E: Error + 'static>(error: E) -> Self
pub fn from_std_with_class<E: Error + 'static>( error: E, j_class: JExceptionClass, ) -> Self
Trait Implementations§
Source§impl Clone for JException
impl Clone for JException
Source§fn clone(&self) -> JException
fn clone(&self) -> JException
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JException
impl Debug for JException
Source§impl Display for JException
impl Display for JException
Source§impl<E> From<E> for JExceptionwhere
E: Error + 'static,
impl<E> From<E> for JExceptionwhere
E: Error + 'static,
Source§impl From<JExceptionClass> for JException
impl From<JExceptionClass> for JException
Source§fn from(val: JExceptionClass) -> Self
fn from(val: JExceptionClass) -> Self
Converts to this type from the input type.
Source§impl ToException for JException
impl ToException for JException
fn to_exception(&self) -> Exception
Auto Trait Implementations§
impl Freeze for JException
impl !RefUnwindSafe for JException
impl !Send for JException
impl !Sync for JException
impl Unpin for JException
impl !UnwindSafe for JException
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