Skip to content

Commit d653b4b

Browse files
committed
Added connection_timeout exception.
1 parent 7f9f50e commit d653b4b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

http/src/network/http/v2/client/client_errors.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace network {
1515
enum class client_error {
1616
// scheme
1717
invalid_scheme,
18+
19+
// connection
20+
connnection_timeout
1821
};
1922

2023
class client_category_impl : public std::error_category {
@@ -44,6 +47,16 @@ namespace network {
4447
virtual ~invalid_scheme() noexcept;
4548

4649
};
50+
51+
class connection_timeout : public std::system_error {
52+
53+
public:
54+
55+
connection_timeout() = default;
56+
57+
virtual ~connection_timeout() noexcept;
58+
59+
};
4760
} // namespace v2
4861
} // namespace http
4962
} // namespace network

0 commit comments

Comments
 (0)