aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat/Exceptions/MappingException.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-12-18 00:44:33 -0500
committerGitHub <noreply@github.com>2016-12-18 00:44:33 -0500
commite7cebb91a73354dc3e0d0b6340c9fbd6511f4406 (patch)
tree6f1c368c766c17b7514fe749c0e92e69cd89194a /Mono.Nat/Exceptions/MappingException.cs
parent025905a3e4d50b9a2e07fbf4ff0a203af6604ced (diff)
parentaaa027f3229073e9a40756c3157d41af2a442922 (diff)
Merge pull request #2350 from MediaBrowser/beta
Beta
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);
- }
}
}