Function error

Source
pub fn error(
    code: i32,
    err: &str,
    func: &str,
    file: &str,
    line: i32,
) -> Result<()>
Expand description

! 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