com.safmq
Class MQException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.safmq.MQException
All Implemented Interfaces:
java.io.Serializable

public class MQException
extends java.lang.Exception

Exception thrown in cases where the SAFMQ queue server has responded with an error code from within a constructor.

See Also:
Serialized Form

Constructor Summary
MQException(java.lang.String msg, int errorcode)
          Constructs the MQException from a description message and error code.
 
Method Summary
 int getErrorcode()
          Provides the error code associated with the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MQException

public MQException(java.lang.String msg,
                   int errorcode)
Constructs the MQException from a description message and error code.

Parameters:
msg - The description message
errorcode - The error code, typically defined in the class Safmq.
See Also:
Safmq
Method Detail

getErrorcode

public int getErrorcode()
Provides the error code associated with the exception.

Returns:
The error code associated with the exception.
See Also:
Safmq.EC_NOERROR, Safmq.EC_TIMEDOUT, Safmq.EC_NOTAUTHORIZED, Safmq.EC_ALREADYCLOSED, Safmq.EC_DOESNOTEXIST, Safmq.EC_NOTOPEN, Safmq.EC_NETWORKERROR, Safmq.EC_TTLEXPIRED, Safmq.EC_CURSORINVALIDATED, Safmq.EC_DUPLICATEMSGID, Safmq.EC_SERVERUNAVAIL, Safmq.EC_NOMOREMESSAGES, Safmq.EC_FILESYSTEMERROR, Safmq.EC_CANNOTCHANGEGROUP, Safmq.EC_CANNOTCHANGEUSER, Safmq.EC_ALREADYDEFINED, Safmq.EC_NOTIMPLEMENTED, Safmq.EC_QUEUEOPEN, Safmq.EC_NOTLOGGEDIN, Safmq.EC_INVALIDNAME, Safmq.EC_ERROR

Copyright Matthew J. Battey, 2004-2010;
Powered By: Get SAFMQ: Store and Forward Message Queue at SourceForge.net. Fast, secure and Free Open Source software downloads