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