Skip to content

Commit b17f9b9

Browse files
committed
Added constructors.
1 parent 6d21911 commit b17f9b9

5 files changed

Lines changed: 99 additions & 7 deletions

File tree

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.Serialization;
45
using System.Text;
56
using System.Threading.Tasks;
6-
77
namespace CodeIsle.LibIpsNet.Exceptions
88
{
9-
public class Ips16MBException: ApplicationException
9+
[Serializable]
10+
public class Ips16MBException : Exception
1011
{
12+
public Ips16MBException()
13+
: base() { }
14+
15+
public Ips16MBException(string message)
16+
: base(message) { }
17+
18+
public Ips16MBException(string format, params object[] args)
19+
: base(string.Format(format, args)) { }
20+
21+
public Ips16MBException(string message, Exception innerException)
22+
: base(message, innerException) { }
23+
24+
public Ips16MBException(string format, Exception innerException, params object[] args)
25+
: base(string.Format(format, args), innerException) { }
1126

27+
protected Ips16MBException(SerializationInfo info, StreamingContext context)
28+
: base(info, context) { }
1229
}
1330
}
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.Serialization;
45
using System.Text;
56
using System.Threading.Tasks;
67

78
namespace CodeIsle.LibIpsNet.Exceptions
89
{
9-
public class IpsIdenticalException: ApplicationException
10+
[Serializable]
11+
public class IpsIdenticalException : Exception
1012
{
13+
public IpsIdenticalException()
14+
: base() { }
15+
16+
public IpsIdenticalException(string message)
17+
: base(message) { }
18+
19+
public IpsIdenticalException(string format, params object[] args)
20+
: base(string.Format(format, args)) { }
21+
22+
public IpsIdenticalException(string message, Exception innerException)
23+
: base(message, innerException) { }
24+
25+
public IpsIdenticalException(string format, Exception innerException, params object[] args)
26+
: base(string.Format(format, args), innerException) { }
27+
28+
protected IpsIdenticalException(SerializationInfo info, StreamingContext context)
29+
: base(info, context) { }
1130
}
1231
}
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.Serialization;
45
using System.Text;
56
using System.Threading.Tasks;
67

78
namespace CodeIsle.LibIpsNet.Exceptions
89
{
9-
public class IpsInvalidException : ApplicationException
10+
[Serializable]
11+
public class IpsInvalidException : Exception
1012
{
13+
public IpsInvalidException()
14+
: base() { }
15+
16+
public IpsInvalidException(string message)
17+
: base(message) { }
18+
19+
public IpsInvalidException(string format, params object[] args)
20+
: base(string.Format(format, args)) { }
21+
22+
public IpsInvalidException(string message, Exception innerException)
23+
: base(message, innerException) { }
24+
25+
public IpsInvalidException(string format, Exception innerException, params object[] args)
26+
: base(string.Format(format, args), innerException) { }
27+
28+
protected IpsInvalidException(SerializationInfo info, StreamingContext context)
29+
: base(info, context) { }
1130
}
1231
}
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.Serialization;
45
using System.Text;
56
using System.Threading.Tasks;
67

78
namespace CodeIsle.LibIpsNet.Exceptions
89
{
9-
public class IpsNotThisException: ApplicationException
10+
[Serializable]
11+
public class IpsNotThisException : Exception
1012
{
13+
public IpsNotThisException()
14+
: base() { }
15+
16+
public IpsNotThisException(string message)
17+
: base(message) { }
18+
19+
public IpsNotThisException(string format, params object[] args)
20+
: base(string.Format(format, args)) { }
21+
22+
public IpsNotThisException(string message, Exception innerException)
23+
: base(message, innerException) { }
24+
25+
public IpsNotThisException(string format, Exception innerException, params object[] args)
26+
: base(string.Format(format, args), innerException) { }
27+
28+
protected IpsNotThisException(SerializationInfo info, StreamingContext context)
29+
: base(info, context) { }
1130
}
1231
}

LibIPS.NET/Exceptions/IpsScrambledException.cs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,28 @@
33
using System.Linq;
44
using System.Text;
55
using System.Threading.Tasks;
6-
6+
using System.Runtime.Serialization;
77
namespace CodeIsle.LibIpsNet.Exceptions
88
{
9-
public class IpsScrambledException: ApplicationException
9+
[Serializable]
10+
public class IpsScrambledException : Exception
1011
{
12+
public IpsScrambledException()
13+
: base() { }
14+
15+
public IpsScrambledException(string message)
16+
: base(message) { }
17+
18+
public IpsScrambledException(string format, params object[] args)
19+
: base(string.Format(format, args)) { }
20+
21+
public IpsScrambledException(string message, Exception innerException)
22+
: base(message, innerException) { }
23+
24+
public IpsScrambledException(string format, Exception innerException, params object[] args)
25+
: base(string.Format(format, args), innerException) { }
26+
27+
protected IpsScrambledException(SerializationInfo info, StreamingContext context)
28+
: base(info, context) { }
1129
}
1230
}

0 commit comments

Comments
 (0)