[][src]Trait opencv::prelude::ExceptionTrait

pub trait ExceptionTrait {
    fn as_raw_Exception(&self) -> *mut c_void;

    fn msg(&self) -> String { ... }
fn set_msg(&mut self, val: &str) { ... }
fn code(&self) -> i32 { ... }
fn set_code(&mut self, val: i32) { ... }
fn err(&self) -> String { ... }
fn set_err(&mut self, val: &str) { ... }
fn func(&self) -> String { ... }
fn set_func(&mut self, val: &str) { ... }
fn file(&self) -> String { ... }
fn set_file(&mut self, val: &str) { ... }
fn line(&self) -> i32 { ... }
fn set_line(&mut self, val: i32) { ... }
fn what(&self) -> Result<String> { ... }
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

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.

fn format_message(&mut self) -> Result<()>

Loading content...

Implementors

impl ExceptionTrait for Exception[src]

Loading content...