summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/VRM/VRM/UniJSON/Scripts/Exceptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ThirdParty/VRM/VRM/UniJSON/Scripts/Exceptions.cs')
-rw-r--r--Assets/ThirdParty/VRM/VRM/UniJSON/Scripts/Exceptions.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Assets/ThirdParty/VRM/VRM/UniJSON/Scripts/Exceptions.cs b/Assets/ThirdParty/VRM/VRM/UniJSON/Scripts/Exceptions.cs
new file mode 100644
index 00000000..d92f0d75
--- /dev/null
+++ b/Assets/ThirdParty/VRM/VRM/UniJSON/Scripts/Exceptions.cs
@@ -0,0 +1,34 @@
+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) { }
+ }
+}