[−][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]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for Exception
[src]
impl ExceptionTrait for Exception
[src]
fn as_raw_Exception(&self) -> *const c_void
[src]
fn as_raw_mut_Exception(&mut self) -> *mut c_void
[src]
fn msg(&self) -> String
[src]
fn set_msg(&mut self, val: &str)
[src]
fn code(&self) -> i32
[src]
fn set_code(&mut self, val: i32)
[src]
fn err(&self) -> String
[src]
fn set_err(&mut self, val: &str)
[src]
fn func(&self) -> String
[src]
fn set_func(&mut self, val: &str)
[src]
fn file(&self) -> String
[src]
fn set_file(&mut self, val: &str)
[src]
fn line(&self) -> i32
[src]
fn set_line(&mut self, val: i32)
[src]
fn what(&self) -> Result<String>
[src]
fn format_message(&mut self) -> Result<()>
[src]
impl Send for Exception
[src]
Auto Trait Implementations
impl RefUnwindSafe for Exception
impl !Sync for Exception
impl Unpin for Exception
impl UnwindSafe for Exception
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>,