[][src]Function opencv::core::error

pub fn error(
    _code: i32,
    _err: &str,
    _func: &str,
    _file: &str,
    _line: i32
) -> Result<()>

! Signals an error and raises the exception.

By default the function prints information about the error to stderr, then it either stops if setBreakOnError() had been called before or raises the exception. It is possible to alternate error processing by using redirectError().

Parameters

  • _code: - error code (Error::Code)
  • _err: - error description
  • _func: - function name. Available only when the compiler supports getting it
  • _file: - source file name where the error has occurred
  • _line: - line number in the source file where the error has occurred

See also

CV_Error, CV_Error_, CV_Assert, CV_DbgAssert