aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat/Exceptions/MappingException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mono.Nat/Exceptions/MappingException.cs')
-rw-r--r--Mono.Nat/Exceptions/MappingException.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/Mono.Nat/Exceptions/MappingException.cs b/Mono.Nat/Exceptions/MappingException.cs
index bb2e6a69d..9c0c4f122 100644
--- a/Mono.Nat/Exceptions/MappingException.cs
+++ b/Mono.Nat/Exceptions/MappingException.cs
@@ -25,11 +25,9 @@
//
using System;
-using System.Security.Permissions;
namespace Mono.Nat
{
- [Serializable]
public class MappingException : Exception
{
private int errorCode;
@@ -45,7 +43,6 @@ namespace Mono.Nat
get { return this.errorText; }
}
- #region Constructors
public MappingException()
: base()
{
@@ -67,21 +64,5 @@ namespace Mono.Nat
: base(message, innerException)
{
}
-
- protected MappingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
- : base(info, context)
- {
- }
- #endregion
-
- [SecurityPermission(SecurityAction.Demand, SerializationFormatter=true)]
- public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
- {
- if(info==null) throw new ArgumentNullException("info");
-
- this.errorCode = info.GetInt32("errorCode");
- this.errorText = info.GetString("errorText");
- base.GetObjectData(info, context);
- }
}
}