e2915eed0011e7178557444585d6bd128d1363f2
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Metadata / EdmError.cs
1 //---------------------------------------------------------------------
2 // <copyright file="EdmError.cs" company="Microsoft">
3 //      Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //
6 // @owner       Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
9
10 using System;
11 using System.Data;
12
13 namespace System.Data.Metadata.Edm
14 {
15
16     /// <summary>
17     /// This class encapsulates the error information for a generic EDM error.
18     /// </summary>
19     [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
20     [Serializable]
21     public abstract class EdmError
22     {
23         #region Instance Fields
24         private string _message = null;
25         #endregion
26
27         #region Constructors
28         /// <summary>
29         /// Constructs a EdmSchemaError object.
30         /// </summary>
31         /// <param name="message">The explanation of the error.</param>
32         /// <param name="errorCode">The code associated with this error.</param>
33         /// <param name="severity">The severity of the error.</param>
34         internal EdmError(string message)
35         {
36             EntityUtil.CheckStringArgument(message, "message");
37             _message = message;
38         }
39         #endregion
40
41         #region Properties
42         /// <summary>
43         /// Gets the error message.
44         /// </summary>
45         public string Message
46         {
47             get
48             {
49                 return _message;
50             }
51         }
52         #endregion
53
54     }
55 }