From commits-return-47897-archive-asf-public=cust-asf.ponee.io@qpid.apache.org Thu Mar 7 14:33:48 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B0290180654 for ; Thu, 7 Mar 2019 15:33:47 +0100 (CET) Received: (qmail 92950 invoked by uid 500); 7 Mar 2019 14:33:46 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 92940 invoked by uid 99); 7 Mar 2019 14:33:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2019 14:33:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 48B988790E; Thu, 7 Mar 2019 14:33:46 +0000 (UTC) Date: Thu, 07 Mar 2019 14:33:46 +0000 To: "commits@qpid.apache.org" Subject: [qpid-proton] branch master updated: PROTON-2015: [cpp] listener::on_error() should throw by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155196922610.394.15503406021262419055@gitbox.apache.org> From: aconway@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: qpid-proton X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 34cc8bf85979187721223dbce579fc36eda29e6f X-Git-Newrev: 72d5cbd18b4573ac43857c6e3621b32667048c1e X-Git-Rev: 72d5cbd18b4573ac43857c6e3621b32667048c1e X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org