Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22ED3172F6 for ; Thu, 28 Jan 2016 15:32:38 +0000 (UTC) Received: (qmail 57553 invoked by uid 500); 28 Jan 2016 15:31:39 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 57477 invoked by uid 500); 28 Jan 2016 15:31:39 -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 57428 invoked by uid 99); 28 Jan 2016 15:31:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2016 15:31:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 74F57E0B3A; Thu, 28 Jan 2016 15:31:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: astitcher@apache.org To: commits@qpid.apache.org Date: Thu, 28 Jan 2016 15:31:40 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/5] qpid-proton git commit: PROTON-1095: Make the exception thrown on unhandled error be proton::error PROTON-1095: Make the exception thrown on unhandled error be proton::error Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2d7d08d7 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2d7d08d7 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2d7d08d7 Branch: refs/heads/0.12.x Commit: 2d7d08d7a9823076375fcb9716e6f42dccf42525 Parents: 7c080f1 Author: Andrew Stitcher Authored: Tue Jan 26 12:56:01 2016 -0500 Committer: Andrew Stitcher Committed: Thu Jan 28 10:23:26 2016 -0500 ---------------------------------------------------------------------- proton-c/bindings/cpp/src/handler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2d7d08d7/proton-c/bindings/cpp/src/handler.cpp ---------------------------------------------------------------------- diff --git a/proton-c/bindings/cpp/src/handler.cpp b/proton-c/bindings/cpp/src/handler.cpp index 90198b0..5948b36 100644 --- a/proton-c/bindings/cpp/src/handler.cpp +++ b/proton-c/bindings/cpp/src/handler.cpp @@ -20,6 +20,7 @@ */ #include "proton/handler.hpp" +#include "proton/error.hpp" #include "proton/transport.hpp" #include "proton_event.hpp" @@ -61,6 +62,6 @@ void handler::on_transaction_commit(event &e) { on_unhandled(e); } void handler::on_transaction_declare(event &e) { on_unhandled(e); } void handler::on_unhandled(event &) {} -void handler::on_unhandled_error(event &, const condition& c) { throw std::runtime_error(c.str()); } +void handler::on_unhandled_error(event &, const condition& c) { throw proton::error(c.str()); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org