Table of Contents

Class OpenCVException

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

The default exception to be thrown by OpenCV

[Serializable]
public class OpenCVException : Exception, ISerializable
Inheritance
OpenCVException
Implements
Inherited Members

Constructors

OpenCVException()

Initializes a new instance of the Exception class.

public OpenCVException()

OpenCVException(ErrorCode, string, string, string, int)

Constructor

public OpenCVException(ErrorCode status, string funcName, string errMsg, string fileName, int line)

Parameters

status ErrorCode

The numeric code for error status

funcName string

The source file name where error is encountered

errMsg string

A description of the error

fileName string

The source file name where error is encountered

line int

The line number in the source where error is encountered

OpenCVException(string)

Initializes a new instance of the Exception class with a specified error message.

public OpenCVException(string message)

Parameters

message string

The message that describes the error.

OpenCVException(string, Exception)

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

public OpenCVException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Properties

ErrMsg

A description of the error

public string ErrMsg { get; set; }

Property Value

string

FileName

The source file name where error is encountered

public string FileName { get; set; }

Property Value

string

FuncName

The source file name where error is encountered

public string FuncName { get; set; }

Property Value

string

Line

The line number in the source where error is encountered

public int Line { get; set; }

Property Value

int

Status

The numeric code for error status

public ErrorCode Status { get; set; }

Property Value

ErrorCode