Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Data.Entity / System / Data / ProviderIncompatibleException.cs
blob8b3a5dad12ad5226b1f35a523db226083f168687
1 //---------------------------------------------------------------------
2 // <copyright file="ProviderIncompatibleException.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 //
6 // @owner Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
10 namespace System.Data
12 using System;
13 using System.Data;
14 using System.Runtime.Serialization;
15 using System.Security.Permissions;
17 /// <summary>
18 /// This exception is thrown when the store provider exhibits a behavior incompatible with the entity client provider
19 /// </summary>
20 [Serializable]
21 public sealed class ProviderIncompatibleException : EntityException
23 /// <summary>
24 /// Initializes a new instance of ProviderIncompatibleException
25 /// </summary>
26 public ProviderIncompatibleException()
27 : base()
28 { }
30 /// <summary>
31 /// Initializes a new instance of ProviderIncompatibleException
32 /// </summary>
33 /// <param name="message"></param>
34 public ProviderIncompatibleException(string message)
35 : base(message)
36 { }
38 /// <summary>
39 /// Constructor that takes a message and an inner exception
40 /// </summary>
41 /// <param name="message"></param>
42 /// <param name="innerException"></param>
43 public ProviderIncompatibleException(string message, Exception innerException)
44 : base(message, innerException)
45 { }
47 /// <summary>
48 /// Initializes a new instance of ProviderIncompatibleException
49 /// </summary>
50 /// <param name="info"></param>
51 /// <param name="context"></param>
52 private ProviderIncompatibleException(SerializationInfo info, StreamingContext context)
53 : base(info, context)
54 { }