Class UpdateConcurrencyException<T>
Represents the exception that is thrown when there is a conflict between the information supplied by the user and the information that is stored in the physical data source.
Inheritance
Inherited Members
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
[Serializable]
public class UpdateConcurrencyException<T> : UpdateConcurrencyException, ISerializable, _Exception where T : class
Type Parameters
T
|
Constructors
UpdateConcurrencyException()
Initializes a new instance of UpdateConcurrencyException<T> class.
Declaration
public UpdateConcurrencyException()
UpdateConcurrencyException(SerializationInfo, StreamingContext)
Initializes a new instance of the UpdateConcurrencyException<T> class with serialized data.
Declaration
protected UpdateConcurrencyException(SerializationInfo info, StreamingContext context)
Parameters
SerializationInfo
info
The object that holds the serialized object data. |
StreamingContext
context
The contextual information about the source or destination. |
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
UpdateConcurrencyException(String)
Initializes a new instance of UpdateConcurrencyException<T> class with the specified message
.
Declaration
public UpdateConcurrencyException(string message)
Parameters
String
message
A message that describes the error. |
UpdateConcurrencyException(String, T, T)
Initializes a new instance of UpdateConcurrencyException<T> class with the specified message
and
the current and stored objects involved in the exception.
Declaration
public UpdateConcurrencyException(string message, T current, T stored)
Parameters
String
message
A message that describes the error. |
T
current
The current object that was tried to save. |
T
stored
The stored object that exists in the database. |
UpdateConcurrencyException(String, Exception)
Initializes a new instance of UpdateConcurrencyException<T> class with the specified message
and
a reference to the inner exception that is the cause of this exception.
Declaration
public UpdateConcurrencyException(string message, Exception innerException)
Parameters
String
message
A message that describes the error. |
Exception
innerException
The exception that is the cause of this exception. |
Properties
Current
Gets the current object that was tried to save.
Declaration
public T Current { get; set; }
Property Value
T
|
Stored
Gets the stored object that exists in the database.
Declaration
public T Stored { get; set; }
Property Value
T
|