[][src]Trait opencv::core::ExceptionTrait

pub trait ExceptionTrait {
    pub fn as_raw_Exception(&self) -> *const c_void;
pub fn as_raw_mut_Exception(&mut self) -> *mut c_void; pub fn msg(&self) -> String { ... }
pub fn set_msg(&mut self, val: &str) { ... }
pub fn code(&self) -> i32 { ... }
pub fn set_code(&mut self, val: i32) { ... }
pub fn err(&self) -> String { ... }
pub fn set_err(&mut self, val: &str) { ... }
pub fn func(&self) -> String { ... }
pub fn set_func(&mut self, val: &str) { ... }
pub fn file(&self) -> String { ... }
pub fn set_file(&mut self, val: &str) { ... }
pub fn line(&self) -> i32 { ... }
pub fn set_line(&mut self, val: i32) { ... }
pub fn what(&self) -> Result<String> { ... }
pub fn format_message(&mut self) -> Result<()> { ... } }

! 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

Loading content...

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.

pub fn format_message(&mut self) -> Result<()>[src]

Loading content...

Implementors

impl ExceptionTrait for Exception[src]

Loading content...