Skip to content

Commit 4961e72

Browse files
Add missing documentation about thrown exceptions
1 parent f76d1be commit 4961e72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/router/table.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ namespace router {
122122
* @param endpoint The endpoint to route
123123
* @param parameters The arguments to give to the callback
124124
* @return The result of the callback
125-
* @throws std::out_of_range
125+
* @throws std::out_of_range If no matching route and no not_found handler is available
126126
*/
127127
return_type route(std::string_view endpoint, arguments... parameters) const
128128
{
@@ -302,7 +302,7 @@ namespace router {
302302
* @param method The method to proxy to
303303
* @param parameters The arguments to give to the callback
304304
* @return The result of the callback
305-
* @throws std::out_of_range
305+
* @throws std::out_of_range If no matching route or not_found handler is found
306306
*/
307307
return_type route(std::string_view endpoint, decltype(first) method, arguments... parameters) const
308308
{

0 commit comments

Comments
 (0)