- Fixed https://github.com/rpgmaker/NetJSON/issues/217 · rpgmaker/NetJSON@fe926de · GitHub
Skip to content

Commit fe926de

Browse files
committed
- Fixed #217
Signed-off-by: rpgmaker <olamide.bakre@gmail.com>
1 parent 991a7c0 commit fe926de

15 files changed

Lines changed: 114 additions & 3 deletions

File tree

NetJSON.Tests/SerializeTests.cs

Lines changed: 34 additions & 0 deletions

NetJSON/Models.cs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,21 @@ public NetJSONInvalidJSONException()
189189
}
190190
}
191191

192-
/// <summary>
193-
/// Exception thrown for invalid json property attribute
192+
/// <summary>
193+
/// Exception thrown for invalid json string
194194
/// </summary>
195-
public sealed class NetJSONInvalidJSONPropertyException : Exception
195+
public sealed class NetJSONTypeMismatchException : Exception
196+
{
197+
public NetJSONTypeMismatchException()
198+
: base("Unexpected type was encountered in JSON")
199+
{
200+
}
201+
}
202+
203+
/// <summary>
204+
/// Exception thrown for invalid json property attribute
205+
/// </summary>
206+
public sealed class NetJSONInvalidJSONPropertyException : Exception
196207
{
197208
/// <summary>
198209
/// Default constructor

NetJSON/NetJSON.cs

Lines changed: 36 additions & 0 deletions

NetJSON/lib/net35/NetJSON.dll

512 Bytes
Binary file not shown.

NetJSON/lib/net35/NetJSON.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NetJSON/lib/net40/NetJSON.XML

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NetJSON/lib/net40/NetJSON.dll

1 KB
Binary file not shown.

NetJSON/lib/net462/NetJSON.dll

512 Bytes
Binary file not shown.

NetJSON/lib/net462/NetJSON.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NetJSON/lib/net472/NetJSON.dll

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)