Table of Contents

Class LinqException

Namespace
LinqToDB.Linq
Assembly
linq2db.dll

Defines the base class for the namespace exceptions.

[Serializable]
public class LinqException : Exception, ISerializable, _Exception
Inheritance
LinqException
Implements
Inherited Members
Extension Methods

Remarks

This class is the base class for exceptions that may occur during execution of the namespace members.

Constructors

LinqException()

Initializes a new instance of the LinqException class.

public LinqException()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "LinqToDB Linq error has occurred."

LinqException(Exception)

Initializes a new instance of the LinqException class with the InnerException property.

public LinqException(Exception innerException)

Parameters

innerException Exception

The InnerException, if any, that threw the current exception.

See Also

LinqException(SerializationInfo, StreamingContext)

Initializes a new instance of the LinqException class with serialized data.

protected LinqException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The object that holds the serialized object data.

context StreamingContext

The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

LinqException(string, Exception)

Initializes a new instance of the LinqException class with the specified error message and InnerException property.

public LinqException(string message, Exception innerException)

Parameters

message string

The message to display to the client when the exception is thrown.

innerException Exception

The InnerException, if any, that threw the current exception.

See Also

LinqException(string, params object?[])

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

public LinqException(string message, params object?[] args)

Parameters

message string

The message to display to the client when the exception is thrown.

args object[]

An object array containing zero or more objects to format.

See Also