[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security SecurityExce
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security SecurityException.cs,1.4,1.5 VerificationException.cs,1.3,1.4 XmlSyntaxException.cs,1.3,1.4 |
Date: |
Mon, 07 Apr 2003 00:22:54 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security
In directory subversions:/tmp/cvs-serv26075/runtime/System/Security
Modified Files:
SecurityException.cs VerificationException.cs
XmlSyntaxException.cs
Log Message:
Add serialization support to all of the exception classes in "runtime".
Index: SecurityException.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityException.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SecurityException.cs 5 Apr 2003 06:58:12 -0000 1.4
--- SecurityException.cs 7 Apr 2003 04:22:52 -0000 1.5
***************
*** 3,7 ****
* "System.Security.SecurityException" class.
*
! * Copyright (C) 2001 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
--- 3,7 ----
* "System.Security.SecurityException" class.
*
! * Copyright (C) 2001, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
***************
*** 24,30 ****
--- 24,37 ----
using System;
+ using System.Runtime.Serialization;
public class SecurityException : SystemException
{
+ #if !ECMA_COMPAT
+ // Internal state.
+ private String permissionState;
+ private Type permissionType;
+ #endif
+
// Constructors.
public SecurityException()
***************
*** 34,37 ****
--- 41,52 ----
public SecurityException(String msg, Exception inner)
: base(msg, inner) {}
+ #if !ECMA_COMPAT
+ protected SecurityException(SerializationInfo info,
+
StreamingContext context)
+ : base(info, context)
+ {
+ permissionState =
info.GetString("PermissionState");
+ }
+ #endif
// Get the default message to use for this exception type.
***************
*** 52,55 ****
--- 67,100 ----
}
}
+
+ #if !ECMA_COMPAT
+
+ // Get the permission type.
+ public Type PermissionType
+ {
+ get
+ {
+ return permissionType;
+ }
+ }
+
+ // Get the permission state.
+ public String PermissionState
+ {
+ get
+ {
+ return permissionState;
+ }
+ }
+
+ // Get the serialization data for this object.
+ public override void GetObjectData(SerializationInfo info,
+
StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue("PermissionState",
permissionState);
+ }
+
+ #endif // !ECMA_COMPAT
}; // class SecurityException
Index: VerificationException.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/VerificationException.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** VerificationException.cs 5 Apr 2003 06:58:12 -0000 1.3
--- VerificationException.cs 7 Apr 2003 04:22:52 -0000 1.4
***************
*** 3,7 ****
* "System.Security.VerificationException" class.
*
! * Copyright (C) 2001 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
--- 3,7 ----
* "System.Security.VerificationException" class.
*
! * Copyright (C) 2001, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
***************
*** 24,27 ****
--- 24,28 ----
using System;
+ using System.Runtime.Serialization;
public class VerificationException : SystemException
***************
*** 34,37 ****
--- 35,43 ----
public VerificationException(String msg, Exception inner)
: base(msg, inner) {}
+ #if !ECMA_COMPAT
+ protected VerificationException(SerializationInfo info,
+
StreamingContext context)
+ : base(info, context) {}
+ #endif
// Get the default message to use for this exception type.
Index: XmlSyntaxException.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/XmlSyntaxException.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** XmlSyntaxException.cs 5 Apr 2003 06:58:12 -0000 1.3
--- XmlSyntaxException.cs 7 Apr 2003 04:22:52 -0000 1.4
***************
*** 26,29 ****
--- 26,30 ----
using System;
+ using System.Runtime.Serialization;
public sealed class XmlSyntaxException : SystemException
***************
*** 41,44 ****
--- 42,48 ----
: base(String.Format(_("Exception_XmlSyntaxLineMsg"),
lineNumber,
message)) {}
+ internal XmlSyntaxException(SerializationInfo info,
+
StreamingContext context)
+ : base(info, context) {}
// Get the default HResult value for this type of exception.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security SecurityException.cs,1.4,1.5 VerificationException.cs,1.3,1.4 XmlSyntaxException.cs,1.3,1.4,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection AmbiguousMatchException.cs,1.5,1.6 TargetException.cs,1.5,1.6 TargetInvocationException.cs,1.5,1.6 TargetParameterCountException.cs,1.5,1.6
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Threading SynchronizationLockException.cs,1.5,1.6ThreadAbortException.cs,1.4,1.5 ThreadInterruptedException.cs,1.5,1.6ThreadStateException.cs,1.5,1.6
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection AmbiguousMatchException.cs,1.5,1.6 TargetException.cs,1.5,1.6 TargetInvocationException.cs,1.5,1.6 TargetParameterCountException.cs,1.5,1.6
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Threading SynchronizationLockException.cs,1.5,1.6ThreadAbortException.cs,1.4,1.5 ThreadInterruptedException.cs,1.5,1.6ThreadStateException.cs,1.5,1.6
- Index(es):