//--------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Metadata.Edm { /// /// This class encapsulates the error information for a generic EDM error. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [Serializable] public abstract class EdmError { #region Instance Fields private string _message = null; #endregion #region Constructors /// /// Constructs a EdmSchemaError object. /// /// The explanation of the error. /// The code associated with this error. /// The severity of the error. internal EdmError(string message) { EntityUtil.CheckStringArgument(message, "message"); _message = message; } #endregion #region Properties /// /// Gets the error message. /// public string Message { get { return _message; } } #endregion } }