Skip to content

Commit 551fbcd

Browse files
committed
Renamed exception class.
1 parent b17f9b9 commit 551fbcd

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

LibIPS.NET/Creator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public void Create(Stream source, Stream target, Stream patch)
216216

217217
if (sourcelen > targetlen) Writer.Write24((int)targetlen, patch);
218218

219-
if (sixteenmegabytes) throw new Exceptions.Ips16MBException(); ;
219+
if (sixteenmegabytes) throw new Exceptions.Ips16MegabytesException(); ;
220220
if (patch.Length == 8) throw new Exceptions.IpsIdenticalException();
221221
}
222222

LibIPS.NET/Exceptions/Ips16MBException.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Runtime.Serialization;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
namespace CodeIsle.LibIpsNet.Exceptions
8+
{
9+
[Serializable]
10+
public class Ips16MegabytesException : Exception
11+
{
12+
public Ips16MegabytesException()
13+
: base() { }
14+
15+
public Ips16MegabytesException(string message)
16+
: base(message) { }
17+
18+
public Ips16MegabytesException(string format, params object[] args)
19+
: base(string.Format(format, args)) { }
20+
21+
public Ips16MegabytesException(string message, Exception innerException)
22+
: base(message, innerException) { }
23+
24+
public Ips16MegabytesException(string format, Exception innerException, params object[] args)
25+
: base(string.Format(format, args), innerException) { }
26+
27+
protected Ips16MegabytesException(SerializationInfo info, StreamingContext context)
28+
: base(info, context) { }
29+
}
30+
}

LibIPS.NET/LibIPS.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</ItemGroup>
4242
<ItemGroup>
4343
<Compile Include="Creator.cs" />
44-
<Compile Include="Exceptions\Ips16MBException.cs" />
44+
<Compile Include="Exceptions\Ips16MegabytesException.cs" />
4545
<Compile Include="Exceptions\IpsIdenticalException.cs" />
4646
<Compile Include="Exceptions\IpsInvalidException.cs" />
4747
<Compile Include="Exceptions\IpsNotThisException.cs" />

0 commit comments

Comments
 (0)