UniVRM/UniJSON/Scripts/Exceptions.cs
ousttrue df85433628 Merge commit 'df5f79584312cf4f6cc7ec1d73a78f6ba475c9ad' as 'UniJSON'
Co-authored-by: Deatrathias <dmailsec@gmail.com>
Co-authored-by: dj-kusuha <dj.kusuha+github@gmail.com>
Co-authored-by: ousttrue <ousttrue@gmail.com>
Co-authored-by: yutopp <yutopp@gmail.com>
2018-12-28 20:38:39 +09:00

35 lines
845 B
C#

using System;
namespace UniJSON
{
public class TreeValueException : ArgumentException
{
protected TreeValueException(string msg) : base(msg) { }
}
/// <summary>
///Exception failure
/// </summary>
public class ParserException : TreeValueException
{
public ParserException(string msg) : base(msg) { }
}
/// <summary>
/// Successfully parsed, but fail to getValue
/// </summary>
public class DeserializationException : TreeValueException
{
public DeserializationException(string msg) : base(msg) { }
}
/// <summary>
/// Formatter exception. key value violation
/// </summary>
public class FormatterException : TreeValueException
{
public FormatterException(string msg) : base(msg) { }
}
}