diff options
author | chai <chaifix@163.com> | 2021-09-09 17:24:41 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-09 17:24:41 +0800 |
commit | adbdd29d98ee96e1c6d3d7932c4d8348157d2b87 (patch) | |
tree | 0fcfd86218782b0421ce7a01642aa0d091d78039 /Assets/ThirdParty/LitJson/JsonException.cs | |
parent | 781ad1b41d10e1ff828eb8e4ca60648fdd224cd0 (diff) |
+litJson
Diffstat (limited to 'Assets/ThirdParty/LitJson/JsonException.cs')
-rw-r--r-- | Assets/ThirdParty/LitJson/JsonException.cs | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/Assets/ThirdParty/LitJson/JsonException.cs b/Assets/ThirdParty/LitJson/JsonException.cs new file mode 100644 index 00000000..4efd8905 --- /dev/null +++ b/Assets/ThirdParty/LitJson/JsonException.cs @@ -0,0 +1,65 @@ +#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 +{ + public class JsonException : +#if NETSTANDARD1_5 + Exception +#else + ApplicationException +#endif + { + public JsonException () : base () + { + } + + internal JsonException (ParserToken token) : + base (String.Format ( + "Invalid token '{0}' in input string", token)) + { + } + + internal JsonException (ParserToken token, + Exception inner_exception) : + base (String.Format ( + "Invalid token '{0}' in input string", token), + inner_exception) + { + } + + internal JsonException (int c) : + base (String.Format ( + "Invalid character '{0}' in input string", (char) c)) + { + } + + internal JsonException (int c, Exception inner_exception) : + base (String.Format ( + "Invalid character '{0}' in input string", (char) c), + inner_exception) + { + } + + + public JsonException (string message) : base (message) + { + } + + public JsonException (string message, Exception inner_exception) : + base (message, inner_exception) + { + } + } +} |