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
statusErrorCodeThe numeric code for error status
funcNamestringThe source file name where error is encountered
errMsgstringA description of the error
fileNamestringThe source file name where error is encountered
lineintThe 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
messagestringThe 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
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception, or a null reference (
Nothingin Visual Basic) if no inner exception is specified.
Properties
ErrMsg
A description of the error
public string ErrMsg { get; set; }
Property Value
FileName
The source file name where error is encountered
public string FileName { get; set; }
Property Value
FuncName
The source file name where error is encountered
public string FuncName { get; set; }
Property Value
Line
The line number in the source where error is encountered
public int Line { get; set; }
Property Value
Status
The numeric code for error status
public ErrorCode Status { get; set; }