//--------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner Microsoft // @backupOwner Microsoft //--------------------------------------------------------------------- namespace System.Data { using System; using System.Runtime.Serialization; /// /// metadata exception class /// /// [Serializable] public sealed class MetadataException : EntityException { #region Constructors /// /// constructor with default message /// public MetadataException() // required ctor : base(System.Data.Entity.Strings.Metadata_General_Error) { HResult = HResults.Metadata; } /// /// default constructor /// /// localized error message public MetadataException(string message) // required ctor : base(message) { HResult = HResults.Metadata; } /// /// constructor /// /// localized error message /// inner exception public MetadataException(string message, Exception innerException) // required ctor : base(message, innerException) { HResult = HResults.Metadata; } /// /// constructor for deserialization /// /// /// private MetadataException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion } }