Encapsulates QAnywhere client application exceptions.
Syntaxpublic class QAException
MembersAll members of QAException class, including all inherited members.
| Name | Description |
|---|---|
| Returns the detailed text description of the exception. | |
| Returns the error code of the last exception. | |
| Returns the native error code of the last exception. | |
| The QAManager is already open. | |
| Unable to access the client properties file. | |
| Error retrieving property from message store. | |
| Error getting the queue depth. | |
| Cannot use QAManagerBase.getQueueDepth on a given destination when filter is ALL. | |
| Cannot use QAManagerBase.getQueueDepth when the message store ID has not been set. | |
| Initialization error. | |
| Error initializing the background thread. | |
| There is an invalid property in the client properties file. | |
| Error acknowledging the message. | |
| Error cancelling message. | |
| Error cancelling message. | |
| You cannot write to a message that is in read-only mode. | |
| Error retrieving a message from the client message store. | |
| Error storing a message in the client message store. | |
| The message store has not been initialized for messaging. | |
| The message store is too large relative to the free disk space on the device. | |
| No destination. | |
| The method is not implemented. | |
| The QAManager is not open. | |
| Error opening a connection to the message store. | |
| Error opening the log file. | |
| Cannot open the QAManager because the maximum number of concurrent server requests is not high enough (see database server -gn option). | |
| Error re-opening connection to message store. | |
| The given selector has a syntax error. | |
| Error storing property to message store. | |
| Termination error. | |
| Unexpected end of message reached. | |
| The timestamp is outside of the acceptable range. | |
| No error. |
RemarksYou can use the QAException class to catch QAnywhere exceptions.
The following example catches a QAnywhere exception:
try
{
_qaManager = QAManagerFactory.getInstance().CreateQAManager();
_qaManager.open( AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT );
_qaManager.start();
}
catch( QAException e )
{
// Handle exception.
System.err.println("Error code: " + e.getErrorCode() );
System.err.println("Error message: " + e.getMessage() );
}
} |
getDetailedMessage method
getErrorCode method
getNativeErrorCode method
COMMON_ALREADY_OPEN_ERROR variable
COMMON_GET_INIT_FILE_ERROR variable
COMMON_GET_PROPERTY_ERROR variable
COMMON_GETQUEUEDEPTH_ERROR variable
COMMON_GETQUEUEDEPTH_ERROR_INVALID_ARG variable
COMMON_GETQUEUEDEPTH_ERROR_NO_STORE_ID variable
COMMON_INIT_ERROR variable
COMMON_INIT_THREAD_ERROR variable
COMMON_INVALID_PROPERTY variable
COMMON_MSG_ACKNOWLEDGE_ERROR variable
COMMON_MSG_CANCEL_ERROR variable
COMMON_MSG_CANCEL_ERROR_SENT variable
COMMON_MSG_NOT_WRITEABLE_ERROR variable
COMMON_MSG_RETRIEVE_ERROR variable
COMMON_MSG_STORE_ERROR variable
COMMON_MSG_STORE_NOT_INITIALIZED variable
COMMON_MSG_STORE_TOO_LARGE variable
COMMON_NO_DEST_ERROR variable
COMMON_NO_IMPLEMENTATION variable
COMMON_NOT_OPEN_ERROR variable
COMMON_OPEN_ERROR variable
COMMON_OPEN_LOG_FILE_ERROR variable
COMMON_OPEN_MAXTHREADS_ERROR variable
COMMON_REOPEN_ERROR variable
COMMON_SELECTOR_SYNTAX_ERROR variable
COMMON_SET_PROPERTY_ERROR variable
COMMON_TERMINATE_ERROR variable
COMMON_UNEXPECTED_EOM_ERROR variable
COMMON_UNREPRESENTABLE_TIMESTAMP variable
QA_NO_ERROR variable
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |
