@Override
protected void messageReceived(MsnSession session) {
super.messageReceived(session);
MsnMessageChain chain = session.getOutgoingMessageChain();
int errorCode = getErrorCode();
int trId = getTransactionId();
if(isSupportChunkData() && getChunkData() != null)
logger.trace("Error " + errorCode + ": " +
new String(getChunkData()));
for (MsnMessageIterator iterator = chain.iterator(); iterator
.hasPrevious();) {
MsnOutgoingMessage message = (MsnOutgoingMessage) iterator
.previous();
if (message.getTransactionId() == trId) {
throw new MsnProtocolException(errorCode, this, message);