[−][src]Trait opencv::core::ExceptionTrait
! 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
Required methods
pub fn as_raw_Exception(&self) -> *const c_void
[src]
pub fn as_raw_mut_Exception(&mut self) -> *mut c_void
[src]
Provided methods
pub fn msg(&self) -> String
[src]
the formatted error message
pub fn set_msg(&mut self, val: &str)
[src]
the formatted error message
pub fn code(&self) -> i32
[src]
error code see also: CVStatus
pub fn set_code(&mut self, val: i32)
[src]
error code see also: CVStatus
pub fn err(&self) -> String
[src]
error description
pub fn set_err(&mut self, val: &str)
[src]
error description
pub fn func(&self) -> String
[src]
function name. Available only when the compiler supports getting it
pub fn set_func(&mut self, val: &str)
[src]
function name. Available only when the compiler supports getting it
pub fn file(&self) -> String
[src]
source file name where the error has occurred
pub fn set_file(&mut self, val: &str)
[src]
source file name where the error has occurred
pub fn line(&self) -> i32
[src]
line number in the source file where the error has occurred
pub fn set_line(&mut self, val: i32)
[src]
line number in the source file where the error has occurred
pub fn what(&self) -> Result<String>
[src]
! \return the error description and the context as a text string.