EntitySqlException Class

Definition

Represents an eSQL Query compilation exception; The class of exceptional conditions that may cause this exception to be raised are mainly:

  1. Syntax Errors: raised during query text parsing and when a given query does not conform to eSQL formal grammar;
  2. Semantic Errors: raised when semantic rules of eSQL language are not met such as metadata or schema information not accurate or not present, type validation errors, scoping rule violations, user of undefined variables, etc. For more information, see eSQL Language Spec.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public sealed class EntitySqlException : System.Data.Entity.Core.EntityException
type EntitySqlException = class
    inherit EntityException
Public NotInheritable Class EntitySqlException
Inherits EntityException
Inheritance
EntitySqlException
Attributes

Constructors

EntitySqlException()

Initializes a new instance of EntitySqlException.

EntitySqlException(String)

Initializes a new instance of EntitySqlException with a specialized error message.

EntitySqlException(String, Exception)

Initializes a new instance of the EntitySqlException class that uses a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

Column

Gets the approximate column number where the error occurred.

ErrorContext

Gets the approximate context where the error occurred, if available.

ErrorDescription

Gets a description of the error.

Line

Gets the approximate line number where the error occurred.

Applies to