EntitySqlException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an eSQL Query compilation exception; The class of exceptional conditions that may cause this exception to be raised are mainly:
- Syntax Errors: raised during query text parsing and when a given query does not conform to eSQL formal grammar;
- 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
- Attributes
Constructors
EntitySqlException() |
Initializes a new instance of EntitySqlException. |
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. |
EntitySqlException(String) |
Initializes a new instance of EntitySqlException with a specialized error message. |
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
Entity Framework