Class LinqException
Defines the base class for the namespace exceptions.
Inheritance
Namespace: LinqToDB.Linq
Assembly: linq2db.dll
Syntax
public class LinqException : Exception
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.
Constructors
| Improve this Doc View SourceLinqException()
Initializes a new instance of the LinqException class.
Declaration
public LinqException()
Remarks
This constructor initializes the
LinqException(Exception)
Initializes a new instance of the LinqException class with the InnerException property.
Declaration
public LinqException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Exception | innerException | The InnerException, if any, that threw the current exception. |
LinqException(SerializationInfo, StreamingContext)
Initializes a new instance of the LinqException class with serialized data.
Declaration
protected LinqException(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. |
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.
Declaration
public LinqException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to display to the client when the exception is thrown. |
Exception | innerException | The InnerException, if any, that threw the current exception. |
LinqException(String, Nullable<Object>[])
Initializes a new instance of the LinqException class with the specified error message.
Declaration
public LinqException(string message, params object? [] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to display to the client when the exception is thrown. |
System.Nullable<System.Object>[] | args | An |