EntityException Constructor

 

Initializes a new instance of the EntityException class.

Namespace:   System.Data.Entity.Core
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodEntityException()

Initializes a new instance of the EntityException class with default values.

System_CAPS_protmethodEntityException(SerializationInfo, StreamingContext)

Initializes a new instance of the EntityException class.

System_CAPS_pubmethodEntityException(String)

Initializes a new instance of the EntityException class that accepts a pre-formatted message.

System_CAPS_pubmethodEntityException(String, Exception)

Initializes a new instance of the EntityException class that accepts a pre-formatted message and an inner exception.


EntityException Constructor ()

Initializes a new instance of the EntityException class with default values.

public EntityException()

EntityException Constructor (SerializationInfo, StreamingContext)

Initializes a new instance of the EntityException class.

protected EntityException(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

The serialization info.

context
Type: System.Runtime.Serialization.StreamingContext

The streaming context.


EntityException Constructor (String)

Initializes a new instance of the EntityException class that accepts a pre-formatted message.

public EntityException(
	string message
)

Parameters

message
Type: System.String

Localized error message.


EntityException Constructor (String, Exception)

Initializes a new instance of the EntityException class that accepts a pre-formatted message and an inner exception.

public EntityException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

Localized error message.

innerException
Type: System.Exception

Inner exception.