xmlBlaster 1.6.2 client API

org.xmlBlaster.util.error
Class MsgErrorInfo

java.lang.Object
  extended byorg.xmlBlaster.util.error.MsgErrorInfo
All Implemented Interfaces:
I_MsgErrorInfo, java.io.Serializable

public final class MsgErrorInfo
extends java.lang.Object
implements I_MsgErrorInfo, java.io.Serializable

Encapsulates all necessary information to allow error handling of a lost message.

Instances of this class are immutable.

Author:
xmlBlaster@marcelruff.info
See Also:
Serialized Form

Constructor Summary
MsgErrorInfo(Global glob, MsgQueueEntry[] msgQueueEntries, DispatchManager dispatchManager, java.lang.Throwable throwable)
          Creates an error info instance for an array of message queue entries
MsgErrorInfo(Global glob, MsgQueueEntry msgQueueEntry, DispatchManager dispatchManager, java.lang.Throwable throwable)
          Creates an error info instance with errorCode="internal.unknown"
 
Method Summary
 DispatchManager getDispatchManager()
          Access the DispatchManager which holds the queue.
 MsgQueueEntry[] getMsgQueueEntries()
          Access the message entry object to be handled
 I_Queue getQueue()
          Access the queue where the entries are inside.
 XmlBlasterException getXmlBlasterException()
          Access the exception object describing the problem
 java.lang.String toString()
           
 java.lang.String toXml()
          Dump state of this object into XML.
 java.lang.String toXml(java.lang.String extraOffset)
          Dump state of this object into XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsgErrorInfo

public MsgErrorInfo(Global glob,
                    MsgQueueEntry msgQueueEntry,
                    DispatchManager dispatchManager,
                    java.lang.Throwable throwable)
Creates an error info instance with errorCode="internal.unknown"

Parameters:
dispatchManager - The dispatchManager/queue where the entry is inside, null if the entry is not in a queue
throwable - Creates an error info instance with errorCode="internal.unknown"
if throwable instanceof XmlBlasterException we use the given exception

MsgErrorInfo

public MsgErrorInfo(Global glob,
                    MsgQueueEntry[] msgQueueEntries,
                    DispatchManager dispatchManager,
                    java.lang.Throwable throwable)
Creates an error info instance for an array of message queue entries

Parameters:
dispatchManager - The dispatchManager/queue where the entry is inside, null if the entry is not in a queue
throwable - Creates an error info instance with errorCode="internal.unknown"
if throwable instanceof XmlBlasterException we use the given exception
Method Detail

getMsgQueueEntries

public MsgQueueEntry[] getMsgQueueEntries()
Access the message entry object to be handled

Specified by:
getMsgQueueEntries in interface I_MsgErrorInfo
Returns:
never null

getQueue

public I_Queue getQueue()
Access the queue where the entries are inside.

Specified by:
getQueue in interface I_MsgErrorInfo
Returns:
null if entries are not in a queue

getDispatchManager

public DispatchManager getDispatchManager()
Description copied from interface: I_MsgErrorInfo
Access the DispatchManager which holds the queue.

Specified by:
getDispatchManager in interface I_MsgErrorInfo
Returns:
null if entries are not in a queue

getXmlBlasterException

public XmlBlasterException getXmlBlasterException()
Access the exception object describing the problem

Specified by:
getXmlBlasterException in interface I_MsgErrorInfo
Returns:
never null

toString

public java.lang.String toString()

toXml

public final java.lang.String toXml()
Dump state of this object into XML.

Specified by:
toXml in interface I_MsgErrorInfo
Returns:
XML state of MsgErrorInfo

toXml

public final java.lang.String toXml(java.lang.String extraOffset)
Dump state of this object into XML.

Specified by:
toXml in interface I_MsgErrorInfo
Parameters:
extraOffset - indenting of tags
Returns:
XML state of MsgErrorInfo

xmlBlaster 1.6.2 client API

Copyright © 1999-2007 The xmlBlaster.org contributers.