Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 3285 invoked from network); 20 Oct 2009 15:50:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 15:50:03 -0000 Received: (qmail 69116 invoked by uid 500); 20 Oct 2009 15:50:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 69087 invoked by uid 500); 20 Oct 2009 15:50:02 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 69077 invoked by uid 99); 20 Oct 2009 15:50:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 15:50:02 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 209.85.221.195 as permitted sender) Received: from [209.85.221.195] (HELO mail-qy0-f195.google.com) (209.85.221.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 15:50:00 +0000 Received: by qyk33 with SMTP id 33so4270889qyk.26 for ; Tue, 20 Oct 2009 08:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=Jp+TzXG7zS+JVxkcz3CALCJAQikGy1fWfcnSF8tGaJA=; b=Rb8ec5l7owV2mt1LXO4+SCpbUrPdnsuHBuWYgs5lYDwVuri6S6bkF3P5cf9/82Qa7t Crv95tpqfuAO8ZThWyzeVvbBlgTAaXXKnNt7t1uGMEn7PnsJWvZ7CfyTX9/6gtx29ot3 DtAUFUNAm6FzOcssRO3+bw1DAFDTYcYv3wcJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=ml4/8re7c8hcE46I4DLlYGjUml1NTCfK+m6EHK54+uvi0Js8IOQBpKmn0ggp3TtBMx wp3+H6MZobzGk3itFKj65sq16OApPWtwio5QNieQvtamNERnAa+Ggnwam6PNPS0ntJWx TkJh+VlxNbNyt6PTjKEO9vQcZPOktNxTYukCg= Received: by 10.103.48.26 with SMTP id a26mr2912592muk.83.1256053778950; Tue, 20 Oct 2009 08:49:38 -0700 (PDT) Received: from ?192.168.2.150? (c-69-138-183-90.hsd1.va.comcast.net [69.138.183.90]) by mx.google.com with ESMTPS id j6sm490486mue.20.2009.10.20.08.49.37 (version=SSLv3 cipher=RC4-MD5); Tue, 20 Oct 2009 08:49:38 -0700 (PDT) Subject: Re: ActiveMq-Cpp initializeLibrary and CMSException what() From: Timothy Bish To: dev@activemq.apache.org In-Reply-To: <25977480.post@talk.nabble.com> References: <25977480.post@talk.nabble.com> Content-Type: text/plain Date: Tue, 20 Oct 2009 11:49:36 -0400 Message-Id: <1256053776.2863.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit On Tue, 2009-10-20 at 08:40 -0700, bpmuser wrote: > I was trying to debug an error related to not calling > activemq::library::ActiveMQCPP::initializeLibrary() (I can still find no > documentation on this. I'll try and update at least the example code. I > think it should be on the wiki. I'm new.) > > I was catching the exception as a std::exception and trying to use the > what() function to figure out the error. All that was output was "unknown > exception". I think it be okay to add: > You can create a new Jira issue and attach the patch to properly override the what method from std::exception. Regards Tim. > CMSException.h: > > /** > * Gets the cause of the error. > * > * @return const char pointer to error message > */ > virtual const char * what() const; > > CMSException.cpp: > > //////////////////////////////////////////////////////////////////////////////// > const char * CMSException::what() const { > return this->data->message.c_str(); > } > > It should reasonable and it works on my system. Any thoughts? > > I'm not a dev, but I can try and sign up if needed. > > Cheers, > Brian! > -- Tim Bish http://fusesource.com http://timbish.blogspot.com/