Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityException.cs')
-rw-r--r--mcs/class/corlib/System.Security/SecurityException.cs79
1 files changed, 0 insertions, 79 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityException.cs b/mcs/class/corlib/System.Security/SecurityException.cs
deleted file mode 100644
index aaa0086bbe2..00000000000
--- a/mcs/class/corlib/System.Security/SecurityException.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// System.Security.SecurityException.cs
-//
-// Author:
-// Nick Drochak(ndrochak@gol.com)
-//
-// (C) Nick Drochak
-//
-
-using System.Runtime.Serialization;
-using System.Globalization;
-
-namespace System.Security {
- [Serializable]
- public class SecurityException : SystemException {
-
- // Fields
- string permissionState;
- Type permissionType;
-
- // Properties
- public string PermissionState
- {
- get { return permissionState; }
- }
-
- public Type PermissionType
- {
- get { return permissionType; }
- }
-
- // Constructors
- public SecurityException ()
- : base (Locale.GetText ("A security error has been detected."))
- {
- }
-
- public SecurityException (string message)
- : base (message)
- {
- }
-
- protected SecurityException (SerializationInfo info, StreamingContext context)
- : base (info, context)
- {
- permissionState = info.GetString ("permissionState");
- }
-
- public SecurityException (string message, Exception inner)
- : base (message, inner)
- {
- }
-
- public SecurityException (string message, Type type)
- : base (message)
- {
- permissionType = type;
- }
-
- public SecurityException (string message, Type type, string state)
- : base (message)
- {
- permissionType = type;
- permissionState = state;
- }
-
- // Methods
- public override void GetObjectData (SerializationInfo info, StreamingContext context)
- {
- base.GetObjectData (info, context);
- info.AddValue ("PermissionState", permissionState);
- }
-
- public override string ToString ()
- {
- return permissionType.FullName + ": " + permissionState;
- }
- }
-}