Show / Hide Table of Contents

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
Object
Exception
System.ApplicationException
UpdateConcurrencyException
UpdateConcurrencyException<T>
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
Exception.HelpLink
System.Exception.Source
Exception.HResult
System.Exception.SerializeObjectState
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
Object.MemberwiseClone()
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

Extension Methods

ObjectExtensions.DeepClone<T>(T)
ExceptionExtensions.GetSleepDuration(Exception, TimeSpan)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX