Skip to content

Commit

Permalink
json_pointer.hpp: Mention more exception in documentation
Browse files Browse the repository at this point in the history
Forgotten in dcd3a6c (move the catch of std::invalid_argument into
array_index(), 2020-03-23).
  • Loading branch information
t-b committed Jun 20, 2020
1 parent 74c6e42 commit f0e7316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/nlohmann/detail/json_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ class json_pointer
@return integer representation of @a s
@throw parse_error.106 if an array index begins with '0'
@throw parse_error.109 if an array index begins not with a digit
@throw out_of_range.404 if string @a s could not be converted to an integer
*/
static int array_index(const std::string& s)
Expand Down
2 changes: 2 additions & 0 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11357,6 +11357,8 @@ class json_pointer

@return integer representation of @a s

@throw parse_error.106 if an array index begins with '0'
@throw parse_error.109 if an array index begins not with a digit
@throw out_of_range.404 if string @a s could not be converted to an integer
*/
static int array_index(const std::string& s)
Expand Down

0 comments on commit f0e7316

Please sign in to comment.