Search Results for

    Show / Hide Table of Contents

    Class CVException

    The exception that is thrown when OpenCV error status is set.

    Inheritance
    Object
    CVException
    Namespace: OpenCV.Net
    Assembly: OpenCV.Net.dll
    Syntax
    public class CVException : Exception

    Constructors

    | Improve this Doc View Source

    CVException()

    Initializes a new instance of the CVException class.

    Declaration
    public CVException()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 fileName where the error status was set.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

    Properties

    | Improve this Doc View Source

    ErrorMessage

    Gets or sets the text of the error message.

    Declaration
    public string ErrorMessage { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Status

    Gets or sets the error code, usually a negative value.

    Declaration
    public int Status { get; }
    Property Value
    Type Description
    Int32
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX