Class LinqException
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
- innerExceptionException
- 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
- infoSerializationInfo
- The object that holds the serialized object data. 
- contextStreamingContext
- 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
- messagestring
- The message to display to the client when the exception is thrown. 
- innerExceptionException
- 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
- messagestring
- The message to display to the client when the exception is thrown. 
- argsobject[]
- An object array containing zero or more objects to format. 
- See Also