ionic.Msmq
Class MessageQueueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ionic.Msmq.MessageQueueException
All Implemented Interfaces:
java.io.Serializable

public class MessageQueueException
extends java.lang.Exception

An exception type to wrap any problems that occur during MSMQ operations.

See Also:
Serialized Form

Field Summary
 int hresult
           
 
Constructor Summary
MessageQueueException(int HRESULT)
           
MessageQueueException(java.lang.String message, int HRESULT)
           
 
Method Summary
 java.lang.String toString()
          Produce the string version for the given exception, including the string mnemonic for the HR wrapped by the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hresult

public int hresult
Constructor Detail

MessageQueueException

public MessageQueueException(int HRESULT)

MessageQueueException

public MessageQueueException(java.lang.String message,
                             int HRESULT)
Method Detail

toString

public java.lang.String toString()

Produce the string version for the given exception, including the string mnemonic for the HR wrapped by the exception.

Example:

   try {
       String label="testmessage";
       String body= "....";
       Message msg= new Message(body, label, null);
       queue.send(msg);
   }
   catch (MessageQueueException ex1) {
       System.out.println("Put failure: " + ex1.toString());
   }
 

Overrides:
toString in class java.lang.Throwable