mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
lighten up nat project
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user