Class QueryPreparationException
Thrown when a query cannot be prepared (compiled) for execution.
[Serializable]
public class QueryPreparationException : DataContextException, ISerializable
- Inheritance
-
QueryPreparationException
- Implements
- Inherited Members
- Extension Methods
Remarks
Derives from DataContextException so callers can catch a single library-wide base.
Constructors
QueryPreparationException()
Initializes a new instance of the QueryPreparationException class.
public QueryPreparationException()
QueryPreparationException(SerializationInfo, StreamingContext)
Initializes a new instance of the QueryPreparationException class from serialized data.
[Obsolete(DiagnosticId = "SYSLIB0051")]
protected QueryPreparationException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe object that holds the serialized object data.
contextStreamingContextContextual information about the source or destination of the serialization.
QueryPreparationException(string?)
Initializes a new instance of the QueryPreparationException class with a specified error message.
public QueryPreparationException(string? message)
Parameters
messagestringThe message that describes the error.
QueryPreparationException(string?, Exception?)
Initializes a new instance of the QueryPreparationException class with a specified error message and a reference to the inner exception that caused it.
public QueryPreparationException(string? message, Exception? innerException)