opencv::core

Function terminate

Source
pub fn terminate(code: i32, err: &str, func: &str, file: &str, line: i32)
Expand description

! Signals an error and terminate application.

By default the function prints information about the error to stderr, then it terminates application with std::terminate. The function is designed for invariants check in functions and methods with noexcept attribute.

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