Skip to content

Commit

Permalink
throw std::system_error instead of boost::system::system_error
Browse files Browse the repository at this point in the history
  • Loading branch information
ursfassler committed Dec 29, 2023
1 parent b688cf4 commit 9b70155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/cucumber-cpp/internal/connectors/wire/WireServer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CUCUMBER_CPP_EXPORT TCPSocketServer : public SocketServer {
* Endpoint (IP address and port number) that this server is currently
* listening on.
*
* @throw boost::system::system_error when not listening on any socket or
* @throw std::system_error when not listening on any socket or
* the endpoint cannot be determined.
*/
boost::asio::ip::tcp::endpoint listenEndpoint() const;
Expand Down Expand Up @@ -100,7 +100,7 @@ class CUCUMBER_CPP_EXPORT UnixSocketServer : public SocketServer {
/**
* Port number that this server is currently listening on.
*
* @throw boost::system::system_error when not listening on any socket or
* @throw std::system_error when not listening on any socket or
* the endpoint cannot be determined.
*/
boost::asio::local::stream_protocol::endpoint listenEndpoint() const;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/wire/WireServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void SocketServer::doListen(
basic_socket_acceptor<Protocol>& acceptor, const typename Protocol::endpoint& endpoint
) {
if (acceptor.is_open())
throw boost::system::system_error(boost::asio::error::already_open);
throw std::system_error(asio::error::already_open);
acceptor.open(endpoint.protocol());
acceptor.set_option(typename Protocol::acceptor::reuse_address(true));
acceptor.bind(endpoint);
Expand Down

0 comments on commit 9b70155

Please sign in to comment.