Show / Hide Table of Contents

Class OpenCVException

The default exception to be thrown by OpenCV

Inheritance
System.Object
OpenCVException
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class OpenCVException : Exception

Constructors

| Improve this Doc View Source

OpenCVException()

Declaration
public OpenCVException()
| Improve this Doc View Source

OpenCVException(ErrorCode, String, String, String, Int32)

Constructor

Declaration
public OpenCVException(ErrorCode status, string funcName, string errMsg, string fileName, int line)
Parameters
Type Name Description
ErrorCode status

The numeric code for error status

System.String funcName

The source file name where error is encountered

System.String errMsg

A description of the error

System.String fileName

The source file name where error is encountered

System.Int32 line

The line number in the source where error is encountered

| Improve this Doc View Source

OpenCVException(SerializationInfo, StreamingContext)

Declaration
protected OpenCVException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context
| Improve this Doc View Source

OpenCVException(String)

Declaration
public OpenCVException(string message)
Parameters
Type Name Description
System.String message
| Improve this Doc View Source

OpenCVException(String, Exception)

Declaration
public OpenCVException(string message, Exception innerException)
Parameters
Type Name Description
System.String message
Exception innerException

Properties

| Improve this Doc View Source

ErrMsg

A description of the error

Declaration
public string ErrMsg { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FileName

The source file name where error is encountered

Declaration
public string FileName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FuncName

The source file name where error is encountered

Declaration
public string FuncName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Line

The line number in the source where error is encountered

Declaration
public int Line { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Status

The numeric code for error status

Declaration
public ErrorCode Status { get; set; }
Property Value
Type Description
ErrorCode

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX