using System; using System.Runtime.Serialization; using Kreta.Framework.Localization; using Kreta.Framework.Logging; namespace Kreta.Framework.Security { /// /// A jogosultságrendszer kivételeinek ősosztálya. /// [FriendlyName(1000016, "A jogosultságrendszer megsértése történt.")] [ErrorCode(Events.SECURITY_GENERAL)] [Serializable] public class SecurityException : FrameworkException { /// /// Visszaadja, hogy a jogosultság megsértése okozzon-e munkamenet megszüntetést, vagy sem. /// public virtual bool DestroyUserSession { get { return false; } } /// /// Az osztály konstruktora. /// public SecurityException() { } /// /// Az osztály konstruktora. /// /// A kivétel szövege public SecurityException(string message) : base(message) { } /// /// Az osztály konstruktora. /// /// A kivétel szövege /// Az előző kivétel public SecurityException(string message, Exception innerException) : base(message, innerException) { } /// /// Az osztály konstruktora. /// /// Sorosítási adatok /// Sorosítási adatfolyam protected SecurityException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }