From 04f953abeb82460f78f8b4c47c504eaf1a761511 Mon Sep 17 00:00:00 2001 From: Mauricio Scheffer Date: Mon, 14 Dec 2015 17:53:13 +0000 Subject: [PATCH] Add exception information to xmldocs for JObject parsing. --- Src/Newtonsoft.Json/Linq/JObject.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Src/Newtonsoft.Json/Linq/JObject.cs b/Src/Newtonsoft.Json/Linq/JObject.cs index f8d8e86c..13dad943 100644 --- a/Src/Newtonsoft.Json/Linq/JObject.cs +++ b/Src/Newtonsoft.Json/Linq/JObject.cs @@ -346,6 +346,9 @@ namespace Newtonsoft.Json.Linq /// /// A that will be read for the content of the . /// A that contains the JSON that was read from the specified . + /// + /// is not valid JSON. + /// public new static JObject Load(JsonReader reader) { return Load(reader, null); @@ -358,6 +361,9 @@ namespace Newtonsoft.Json.Linq /// The used to load the JSON. /// If this is null, default load settings will be used. /// A that contains the JSON that was read from the specified . + /// + /// is not valid JSON. + /// public new static JObject Load(JsonReader reader, JsonLoadSettings settings) { ValidationUtils.ArgumentNotNull(reader, "reader"); @@ -393,6 +399,9 @@ namespace Newtonsoft.Json.Linq /// /// A that contains JSON. /// A populated from the string that contains JSON. + /// + /// is not valid JSON. + /// /// /// /// @@ -408,6 +417,9 @@ namespace Newtonsoft.Json.Linq /// The used to load the JSON. /// If this is null, default load settings will be used. /// A populated from the string that contains JSON. + /// + /// is not valid JSON. + /// /// /// ///