Class CVException
The exception that is thrown when OpenCV error status is set.
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public class CVException : Exception
Constructors
| Improve this Doc View SourceCVException()
Initializes a new instance of the CVException class.
Declaration
public CVException()
CVException(SerializationInfo, StreamingContext)
Initializes a new instance of the CVException class from serialization data.
Declaration
protected CVException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |
CVException(Int32, String, String, String, Int32)
Initializes a new instance of the CVException class from OpenCV error information.
Declaration
public CVException(int status, string functionName, string errorMessage, string fileName, int line)
Parameters
Type | Name | Description |
---|---|---|
Int32 | status | The error code, usually a negative value. |
String | functionName | The name of the function where the error status was set. |
String | errorMessage | The text of the error message. |
String | fileName | The path to the file where the error status was set. |
Int32 | line | The line number inside |
CVException(String)
Initializes a new instance of the CVException class with a specified error message.
Declaration
public CVException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
CVException(String, Exception)
Initializes a new instance of the CVException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public CVException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Exception | inner | The exception that is the cause of the current exception. If the |
Properties
| Improve this Doc View SourceErrorMessage
Gets or sets the text of the error message.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
FileName
Gets or sets the path to the file where the error status was set.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
String |
FunctionName
Gets or sets the name of the function where the error status was set.
Declaration
public string FunctionName { get; }
Property Value
Type | Description |
---|---|
String |
Line
Gets or sets the line number inside FileName where the error status was set.
Declaration
public int Line { get; }
Property Value
Type | Description |
---|---|
Int32 |
Status
Gets or sets the error code, usually a negative value.
Declaration
public int Status { get; }
Property Value
Type | Description |
---|---|
Int32 |