Skip to content

Commit

Permalink
add the InvalidNodeReturnTypeException to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
rwecho committed Jul 27, 2023
1 parent a124c39 commit 6fae66d
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions src/HtmlAgilityPack.Shared/HtmlNode.Encapsulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Forum & Issues: https://github.com/zzzprojects/html-agility-pack
// License: https://github.com/zzzprojects/html-agility-pack/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2017. All rights reserved.
// Copyright ZZZ Projects Inc. 2014 - 2017. All rights reserved.

#if !METRO && !NETSTANDARD1_3

Expand All @@ -24,13 +24,14 @@ public partial class HtmlNode
/// <returns>Returns an object of type T including Encapsulated data.</returns>
/// <exception cref="ArgumentException">Why it's thrown.</exception>
/// <exception cref="ArgumentNullException">Why it's thrown.</exception>
/// <exception cref="MissingMethodException">Why it's thrown.</exception>
/// <exception cref="MissingXPathException">Why it's thrown.</exception>
/// <exception cref="XPathException">Why it's thrown.</exception>
/// <exception cref="NodeNotFoundException">Why it's thrown.</exception>
/// <exception cref="NodeAttributeNotFoundException">Why it's thrown.</exception>
/// <exception cref="MissingMethodException"><see cref="MissingMethodException"/></exception>
/// <exception cref="MissingXPathException"><see cref="MissingXPathException"/></exception>
/// <exception cref="XPathException"><see cref="XPathExeption"/></exception>
/// <exception cref="NodeNotFoundException"><see cref="NodeNotFoundException"/></exception>
/// <exception cref="NodeAttributeNotFoundException"><see cref="NodeAttributeNotFoundException"/></exception>
/// <exception cref="FormatException">Why it's thrown.</exception>
/// <exception cref="Exception">Why it's thrown.</exception>
/// <exception cref="InvalidNodeReturnTypeException"><see cref="InvalidNodeReturnTypeException"/></exception>
public T GetEncapsulatedData<T>()
{
return (T)GetEncapsulatedData(typeof(T), null);
Expand All @@ -45,13 +46,14 @@ public T GetEncapsulatedData<T>()
/// <returns>Returns an object of type T including Encapsulated data.</returns>
/// <exception cref="ArgumentException">Why it's thrown.</exception>
/// <exception cref="ArgumentNullException">Why it's thrown.</exception>
/// <exception cref="MissingMethodException">Why it's thrown.</exception>
/// <exception cref="MissingXPathException">Why it's thrown.</exception>
/// <exception cref="XPathException">Why it's thrown.</exception>
/// <exception cref="NodeNotFoundException">Why it's thrown.</exception>
/// <exception cref="NodeAttributeNotFoundException">Why it's thrown.</exception>
/// <exception cref="MissingMethodException"><see cref="MissingMethodException"/></exception>
/// <exception cref="MissingXPathException"><see cref="MissingXPathException"/></exception>
/// <exception cref="XPathException"><see cref="XPathExeption"/></exception>
/// <exception cref="NodeNotFoundException"><see cref="NodeNotFoundException"/></exception>
/// <exception cref="NodeAttributeNotFoundException"><see cref="NodeAttributeNotFoundException"/></exception>
/// <exception cref="FormatException">Why it's thrown.</exception>
/// <exception cref="Exception">Why it's thrown.</exception>
/// <exception cref="InvalidNodeReturnTypeException"><see cref="InvalidNodeReturnTypeException"/></exception>
public T GetEncapsulatedData<T>(HtmlDocument htmlDocument)
{
return (T)GetEncapsulatedData(typeof(T), htmlDocument);
Expand All @@ -67,13 +69,14 @@ public T GetEncapsulatedData<T>(HtmlDocument htmlDocument)
/// <returns>Returns an object of type targetType including Encapsulated data.</returns>
/// <exception cref="ArgumentException">Why it's thrown.</exception>
/// <exception cref="ArgumentNullException">Why it's thrown.</exception>
/// <exception cref="MissingMethodException">Why it's thrown.</exception>
/// <exception cref="MissingXPathException">Why it's thrown.</exception>
/// <exception cref="XPathException">Why it's thrown.</exception>
/// <exception cref="NodeNotFoundException">Why it's thrown.</exception>
/// <exception cref="NodeAttributeNotFoundException">Why it's thrown.</exception>
/// <exception cref="MissingMethodException"><see cref="MissingMethodException"/></exception>
/// <exception cref="MissingXPathException"><see cref="MissingXPathException"/></exception>
/// <exception cref="XPathException"><see cref="XPathExeption"/></exception>
/// <exception cref="NodeNotFoundException"><see cref="NodeNotFoundException"/></exception>
/// <exception cref="NodeAttributeNotFoundException"><see cref="NodeAttributeNotFoundException"/></exception>
/// <exception cref="FormatException">Why it's thrown.</exception>
/// <exception cref="Exception">Why it's thrown.</exception>
/// <exception cref="InvalidNodeReturnTypeException"><see cref="InvalidNodeReturnTypeException"/></exception>
public object GetEncapsulatedData(Type targetType, HtmlDocument htmlDocument = null)
{

Expand Down

0 comments on commit 6fae66d

Please sign in to comment.