Skip to content

Commit d043072

Browse files
committed
Added doxygen documentation for error handling.
1 parent d68fb57 commit d043072

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Doxyfile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,9 @@ WARN_LOGFILE =
648648
# directories like "/usr/src/myproject". Separate the files or directories
649649
# with spaces.
650650

651-
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/http/src/network/http/v2/ \
652-
@CMAKE_CURRENT_SOURCE_DIR@/uri/src/network/
651+
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/error/ \
652+
@CMAKE_CURRENT_SOURCE_DIR@/uri/src/network/ \
653+
@CMAKE_CURRENT_SOURCE_DIR@/http/src/network/http/v2/
653654

654655
# This tag can be used to specify the character encoding of the source files
655656
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

error/src/network/error.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#define NETWORK_ERROR_INC
88

99
/**
10+
* \defgroup error Generic Error Handling
11+
*
1012
* \file
1113
* \brief Contains a set of error classes and exceptions for
1214
* network connections.
@@ -16,7 +18,14 @@
1618

1719
namespace network {
1820
/**
21+
* \ingroup error
1922
* \brief Gets the error category for network errors.
23+
*
24+
* e.g.
25+
*
26+
* \code
27+
* throw std::system_error(EPIPE, network::network_category());
28+
* \endcode
2029
*/
2130
const std::error_category &network_category();
2231
} // namespace network

0 commit comments

Comments
 (0)