diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-10-27 23:17:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-27 23:17:31 -0400 |
| commit | 57f83a2744fb5ebdf5774d51d2125ea46f4ce8ab (patch) | |
| tree | f0a8c9137d24160fe8e2955bff7010163f2d4066 /Mono.Nat/Exceptions | |
| parent | 8fcc7a0385b9db202c1f93ee897eb5a11d2759da (diff) | |
| parent | f6acc5fbff081728138564867a58b7848c92c467 (diff) | |
Merge pull request #2256 from MediaBrowser/dev
Dev
Diffstat (limited to 'Mono.Nat/Exceptions')
| -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); - } } } |
