Trait opencv::prelude::ExceptionTraitConst

source ·
pub trait ExceptionTraitConst {
    // Required method
    fn as_raw_Exception(&self) -> *const c_void;

    // Provided methods
    fn msg(&self) -> String { ... }
    fn code(&self) -> i32 { ... }
    fn err(&self) -> String { ... }
    fn func(&self) -> String { ... }
    fn file(&self) -> String { ... }
    fn line(&self) -> i32 { ... }
    fn what(&self) -> Result<String> { ... }
}
Expand description

Constant methods for core::Exception

Required Methods§

Provided Methods§

source

fn msg(&self) -> String

the formatted error message

source

fn code(&self) -> i32

error code see also: CVStatus

source

fn err(&self) -> String

error description

source

fn func(&self) -> String

function name. Available only when the compiler supports getting it

source

fn file(&self) -> String

source file name where the error has occurred

source

fn line(&self) -> i32

line number in the source file where the error has occurred

source

fn what(&self) -> Result<String>

! \return the error description and the context as a text string.

Implementors§