This is an automated email from the ASF dual-hosted git repository.

aconway pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new 72d5cbd  PROTON-2015: [cpp] listener::on_error() should throw by 
default
72d5cbd is described below

commit 72d5cbd18b4573ac43857c6e3621b32667048c1e
Author: Alan Conway <acon...@redhat.com>
AuthorDate: Thu Mar 7 09:29:15 2019 -0500

    PROTON-2015: [cpp] listener::on_error() should throw by default
---
 cpp/src/listener.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/src/listener.cpp b/cpp/src/listener.cpp
index 8eeb305..4676f72 100644
--- a/cpp/src/listener.cpp
+++ b/cpp/src/listener.cpp
@@ -64,6 +64,6 @@ class container& listener::container() const {
 listen_handler::~listen_handler() {}
 void listen_handler::on_open(listener&) {}
 connection_options listen_handler::on_accept(listener&) { return 
connection_options(); }
-void listen_handler::on_error(listener&, const std::string&) {}
+void listen_handler::on_error(listener&, const std::string& what)  { throw 
proton::error(what); }
 void listen_handler::on_close(listener&) {}
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to