opencv::prelude

Trait 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) -> 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) -> String

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

Implementors§