pub trait ExceptionTraitConst {
    fn as_raw_Exception(&self) -> *const c_void;

    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

! 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§

Provided Methods§

the formatted error message

error code see also: CVStatus

error description

function name. Available only when the compiler supports getting it

source file name where the error has occurred

line number in the source file where the error has occurred

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

Implementors§