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 SourceOpenCVException()
Declaration
public OpenCVException()
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 |
OpenCVException(SerializationInfo, StreamingContext)
Declaration
protected OpenCVException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
OpenCVException(String)
Declaration
public OpenCVException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
OpenCVException(String, Exception)
Declaration
public OpenCVException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
Exception | innerException |
Properties
| Improve this Doc View SourceErrMsg
A description of the error
Declaration
public string ErrMsg { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileName
The source file name where error is encountered
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FuncName
The source file name where error is encountered
Declaration
public string FuncName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Line
The line number in the source where error is encountered
Declaration
public int Line { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Status
The numeric code for error status
Declaration
public ErrorCode Status { get; set; }
Property Value
Type | Description |
---|---|
ErrorCode |
Methods
| Improve this Doc View SourceGetObjectData(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 |