diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-27 19:53:57 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-27 19:53:57 -0400 |
| commit | 8e57296f6986f13578f37647640fcaf49c9981f1 (patch) | |
| tree | 4762b6c0f260802b95c73f1fe1edcf1782b6cec4 /Mono.Nat/Exceptions/MappingException.cs | |
| parent | 0c663a99dc617869f591e97dd2e4ca6f3bd8b207 (diff) | |
lighten up nat project
Diffstat (limited to 'Mono.Nat/Exceptions/MappingException.cs')
| -rw-r--r-- | Mono.Nat/Exceptions/MappingException.cs | 19 |
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); - } } } |
