File: System\Data\OptimisticConcurrencyException.cs
Project: ndp\fx\src\DataEntity\System.Data.Entity.csproj (System.Data.Entity)
//---------------------------------------------------------------------
// <copyright file="OptimisticConcurrencyException.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//
// @owner  Microsoft
//---------------------------------------------------------------------
 
namespace System.Data
{
    using System;
    using System.Reflection;
    using System.Runtime.Serialization;
    using System.Security.Permissions;
    using System.Collections.Generic;
    using System.Data.Objects;
 
    /// <summary>
    /// This exception is thrown when a update operation violates the concurrency constraint.
    /// </summary>
    [Serializable]
    public sealed class OptimisticConcurrencyException : UpdateException
    {       
        /// <summary>
        /// new OptimisticConcurrencyException object
        /// </summary> 
        public OptimisticConcurrencyException()
            : base()
        {
        }
        
        /// <summary>
        /// Initializes a new instance of OptimisticConcurrencyException
        /// </summary>
        /// <param name="message"></param>
        public OptimisticConcurrencyException(string message)
            : base(message)
        {
        }
 
        /// <summary>
        /// Initializes a new instance of OptimisticConcurrencyException
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public OptimisticConcurrencyException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
 
        /// <summary>
        /// Initializes a new instance of OptimisticConcurrencyException
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        /// <param name="stateEntries"></param>
        public OptimisticConcurrencyException(string message, Exception innerException, IEnumerable<ObjectStateEntry> stateEntries)
            : base(message, innerException, stateEntries)
        {
        }
 
        /// <summary>
        /// Initializes a new instance of OptimisticConcurrencyException
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        private OptimisticConcurrencyException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}