MappingException.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / MappingException.cs / 3 / MappingException.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner  [....], [....]
//--------------------------------------------------------------------- 
 

namespace System.Data 
{
    using System;
    using System.Data;
    using System.Runtime.Serialization; 
    using System.Security.Permissions;
    using System.Collections.Generic; 
    using System.Collections.ObjectModel; 

    ///  
    /// Mapping exception class. Note that this class has state - so if you change even
    /// its internals, it can be a breaking change
    /// 
    /// 
    [Serializable]
    public sealed class MappingException : EntityException 
    { 
        /// 
        /// constructor with default message 
        /// 
        public MappingException() // required ctor
            : base(System.Data.Entity.Strings.Mapping_General_Error_0)
        { 
        }
 
        ///  
        /// default constructor
        ///  
        /// localized error message
        public MappingException(string message) // required ctor
            : base(message)
        { 
        }
 
        ///  
        /// constructor
        ///  
        /// localized error message
        /// inner exception
        public MappingException(string message, Exception innerException) // required ctor
            : base(message, innerException) { 
        }
 
        ///  
        /// constructor for deserialization
        ///  
        /// 
        /// 
        private MappingException(SerializationInfo info, StreamingContext context)
            : base(info, context) 
        {
        } 
 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner  [....], [....]
//--------------------------------------------------------------------- 
 

namespace System.Data 
{
    using System;
    using System.Data;
    using System.Runtime.Serialization; 
    using System.Security.Permissions;
    using System.Collections.Generic; 
    using System.Collections.ObjectModel; 

    ///  
    /// Mapping exception class. Note that this class has state - so if you change even
    /// its internals, it can be a breaking change
    /// 
    /// 
    [Serializable]
    public sealed class MappingException : EntityException 
    { 
        /// 
        /// constructor with default message 
        /// 
        public MappingException() // required ctor
            : base(System.Data.Entity.Strings.Mapping_General_Error_0)
        { 
        }
 
        ///  
        /// default constructor
        ///  
        /// localized error message
        public MappingException(string message) // required ctor
            : base(message)
        { 
        }
 
        ///  
        /// constructor
        ///  
        /// localized error message
        /// inner exception
        public MappingException(string message, Exception innerException) // required ctor
            : base(message, innerException) { 
        }
 
        ///  
        /// constructor for deserialization
        ///  
        /// 
        /// 
        private MappingException(SerializationInfo info, StreamingContext context)
            : base(info, context) 
        {
        } 
 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK