Name
SyntaxErrorException
Synopsis
This exception is thrown if there is a syntax error in the SQL used
for the DataColumn.Expression property typically
used to filter rows, calculate the values in a column, or create an
aggregate column. Note that other SQL syntax problems (such as
invalid syntax in a Command) generally lead to
provider-specific errors such as
System.Data.SqlClient.SqlException and
System.Data.OleDb.OleDbException when you execute
the Command. A related exception is
EvaluateException.
public class SyntaxErrorException : InvalidExpressionException { // Public Constructors public SyntaxErrorException( ); public SyntaxErrorException(strings); // Protected Constructors protected SyntaxErrorException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Hierarchy
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
DataException
→
InvalidExpressionException
→
SyntaxErrorException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access