activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <jira+amq...@apache.org>
Subject [jira] Issue Comment Edited: (AMQNET-149) Handle a Broker Exception by forwarding it onto exception listneners
Date Mon, 02 Mar 2009 13:57:59 GMT

    [ https://issues.apache.org/activemq/browse/AMQNET-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50152#action_50152
] 

tabish121 edited comment on AMQNET-149 at 3/2/09 5:56 AM:
-------------------------------------------------------------

The proposed solution is as follows:

{code}
else if(command is ConnectionError)
{
	if(!closing && !closed)
	{
		ConnectionError connectionError = (ConnectionError) command;
		BrokerError brokerError = connectionError.Exception;
		string message = "Broker connection error.";
		string cause = "";

		if(null != brokerError)
		{
			message = brokerError.Message;
			if(null != brokerError.Cause)
			{
				cause = brokerError.Cause.Message;
			}
		}

		OnException(commandTransport, new NMSConnectionException(message, cause));
	}
}
{code}

      was (Author: tabish121):
    The proposed solution is as follows:

{code title=Handle ConnectionError}
else if(command is ConnectionError)
{
	if(!closing && !closed)
	{
		ConnectionError connectionError = (ConnectionError) command;
		BrokerError brokerError = connectionError.Exception;
		string message = "Broker connection error.";
		string cause = "";

		if(null != brokerError)
		{
			message = brokerError.Message;
			if(null != brokerError.Cause)
			{
				cause = brokerError.Cause.Message;
			}
		}

		OnException(commandTransport, new NMSConnectionException(message, cause));
	}
}
{code}
  
> Handle a Broker Exception by forwarding it onto exception listneners
> --------------------------------------------------------------------
>
>                 Key: AMQNET-149
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-149
>             Project: ActiveMQ .Net
>          Issue Type: Sub-task
>          Components: ActiveMQ Client
>    Affects Versions: 1.0, 1.1
>            Reporter: Timothy Bish
>            Assignee: Jim Gomes
>             Fix For: 1.1
>
>
> Add processing in the Connection class to handle exception Commands from the Broker.
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message