[
https://issues.apache.org/activemq/browse/AMQNET-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50152#action_50152
]
Timothy Bish commented on AMQNET-149:
-------------------------------------
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.