Exemple #1
0
 internal JsonValue(string name, JsonElement self, JsonPath parent)
     : base(name, self, parent)
 {
 }
Exemple #2
0
 public JsonException(JsonPath path, string fmt, params string[] args)
     : base(fmt, args)
 {
     JsonPath = path;
 }
Exemple #3
0
 internal JsonPath(string name, JsonElement self, JsonPath parent)
 {
     Name   = name;
     Parent = parent;
     Self   = self;
 }
Exemple #4
0
 public JsonKeyInvalidException(JsonPath path, string reason)
     : base(path, "Property '{0}' is not allowed at this location: {1}", path.Name, reason)
 {
 }
Exemple #5
0
 public JsonKeyWrongTypeException(JsonPath keyPath, string typeExpected, string typeExpected2)
     : base(keyPath, "Property '{0}' should be of type '{1}' or '{2}'.", keyPath.Name, typeExpected, typeExpected2)
 {
 }
Exemple #6
0
 public JsonKeyMissingException(JsonPath path, string key)
     : base(path, "Required property '{0}' is missing.", key)
 {
 }