using System; using System.Runtime.Serialization; using Kreta.Framework.Localization; using Kreta.Framework.Logging; namespace Kreta.Framework.Actions { /// /// Védett kódtételre történő írási műveletet jelző kivétel. /// /// /// A Generált kód használja. /// /// Védettnek az a kódtétel minősül, amelynek a típusa a modellben védetté van nyilvánítva, /// vagy a Protected tulajdonsága true. /// /// [FriendlyName(1000039, "A kódtétel írásvédett, módosítása nem lehetséges.")] [ErrorCode(Events.ACTION_INVALIDREQUEST)] [Serializable] public sealed class ProtectedDictionaryItemException : FrameworkException { const string _errorMessage = "The dictionary item is write-protected."; /// /// Az osztály konstruktora. /// /// A kódtétel típusa public ProtectedDictionaryItemException(string dictionaryItemType) : base(_errorMessage, null) { SetValue("DictionaryItemType", dictionaryItemType); } /// /// Az osztály konstruktora. /// /// A kódtétel típusa /// A kódtétel adatbázisbeli azonosítója public ProtectedDictionaryItemException(string dictionaryItemType, int dictionaryItemId) : base(_errorMessage, null) { SetValue("DictionaryItemType", dictionaryItemType); SetValue("DictionaryItemId", dictionaryItemId); } /// /// Az osztály alapértelmezett konstruktora. /// [Obsolete("Ezt a konstruktort ne használd!")] public ProtectedDictionaryItemException() { } /// /// Az osztály konstruktora. /// /// A kivétel üzenete /// A belső kivétel [Obsolete("Ezt a konstruktort ne használd!")] public ProtectedDictionaryItemException(string message, Exception innerException) : base(message, innerException) { } ProtectedDictionaryItemException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }