SecondBot/libremetaverse-core/Libremetaverse.structureddata/JSON/JsonException.cs
Madpeter e1a7f6f3ec welcome back libmetaverse-core
nuget was good but the workflow was not setup right
2020-05-09 19:46:55 +01:00

57 lines
1.3 KiB
C#

#region Header
/*
* JsonException.cs
* Base class throwed by LitJSON when a parsing error occurs.
*
* The authors disclaim copyright to this source code. For more details, see
* the COPYING file included with this distribution.
*/
#endregion
using System;
namespace LitJson
{
[Serializable]
public class JsonException : ApplicationException
{
public JsonException ()
{
}
internal JsonException (ParserToken token) :
base ($"Invalid token '{token}' in input string")
{
}
internal JsonException (ParserToken token,
Exception inner_exception) :
base ($"Invalid token '{token}' in input string",
inner_exception)
{
}
internal JsonException (int c) :
base ($"Invalid character '{(char) c}' in input string")
{
}
internal JsonException (int c, Exception inner_exception) :
base ($"Invalid character '{(char) c}' in input string",
inner_exception)
{
}
public JsonException (string message) : base (message)
{
}
public JsonException (string message, Exception inner_exception) :
base (message, inner_exception)
{
}
}
}