[−][src]Struct opencv::core::Exception
! Class passed to an error.
This class encapsulates all or almost all necessary information about the error happened in the program. The exception is usually constructed and thrown implicitly via CV_Error and CV_Error_ macros.
See also
error
Implementations
impl Exception
[src]
pub fn as_raw_Exception(&self) -> *const c_void
[src]
pub fn as_raw_mut_Exception(&mut self) -> *mut c_void
[src]
impl Exception
[src]
pub fn default() -> Result<Exception>
[src]
! Default constructor
pub fn new(
_code: i32,
_err: &str,
_func: &str,
_file: &str,
_line: i32
) -> Result<Exception>
[src]
_code: i32,
_err: &str,
_func: &str,
_file: &str,
_line: i32
) -> Result<Exception>
! Full constructor. Normally the constructor is not called explicitly. Instead, the macros CV_Error(), CV_Error_() and CV_Assert() are used.
Trait Implementations
impl Boxed for Exception
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for Exception
[src]
impl ExceptionTrait for Exception
[src]
pub fn as_raw_Exception(&self) -> *const c_void
[src]
pub fn as_raw_mut_Exception(&mut self) -> *mut c_void
[src]
pub fn msg(&self) -> String
[src]
pub fn set_msg(&mut self, val: &str)
[src]
pub fn code(&self) -> i32
[src]
pub fn set_code(&mut self, val: i32)
[src]
pub fn err(&self) -> String
[src]
pub fn set_err(&mut self, val: &str)
[src]
pub fn func(&self) -> String
[src]
pub fn set_func(&mut self, val: &str)
[src]
pub fn file(&self) -> String
[src]
pub fn set_file(&mut self, val: &str)
[src]
pub fn line(&self) -> i32
[src]
pub fn set_line(&mut self, val: i32)
[src]
pub fn what(&self) -> Result<String>
[src]
pub fn format_message(&mut self) -> Result<()>
[src]
impl Send for Exception
[src]
Auto Trait Implementations
impl RefUnwindSafe for Exception
[src]
impl !Sync for Exception
[src]
impl Unpin for Exception
[src]
impl UnwindSafe for Exception
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,