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