Encapsulates QAnywhere client application exceptions.
Visual Basic syntaxPublic MustInherit Class QAException Inherits System.Exception
C# syntaxpublic abstract class QAException : System.Exception
Base classes
MembersAll members of QAException class, including all inherited members.
| Name | Description |
|---|---|
|
|
When overridden in a derived class, returns the System.Exception that is the root cause of one or more subsequent exceptions.
|
|
|
When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
|
|
|
Gets the runtime type of the current instance. |
|
|
Creates and returns a string representation of the current exception. |
|
|
Gets a collection of key/value pairs that provide additional user-defined information about the exception. |
| The detailed error message of the exception. | |
| The error code of the exception. | |
|
|
Gets or sets a link to the help file associated with this exception. |
|
|
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. |
|
|
Gets the System.Exception instance that caused the current exception.
|
|
|
Gets a message that describes the current exception. |
| The native error code of the exception. | |
|
|
Gets or sets the name of the application or the object that causes the error. |
|
|
Gets a string representation of the frames on the call stack at the time the current exception was thrown. |
|
|
Gets the method that throws the current 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.
ExampleThe following method uses the QAException class to catch QAnywhere exceptions:
public static void startReceiver() {
_mainWindow._messageList.Items.Clear();
_mainWindow._detailWindow.Text = "";
try {
_qaManager = QAManagerFactory.Instance.CreateQAManager(null);
_qaManager.Open(AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT);
_qaManager.Start();
_mainWindow.loadMessages();
_qaManager.SetMessageListener(Options.getReceiveQueueName(),_receiveListener);
_qaManager.SetMessageListener("system", _systemListener);
}
catch(QAException e) {
MessageBox.Show("Error code: " + e.ErrorCode );
MessageBox.Show("Error message: " + e.Message );
}
} |
DetailedMessage property
ErrorCode property
NativeErrorCode property
COMMON_ALREADY_OPEN_ERROR field
COMMON_GET_INIT_FILE_ERROR field
COMMON_GET_PROPERTY_ERROR field
COMMON_GETQUEUEDEPTH_ERROR field
COMMON_GETQUEUEDEPTH_ERROR_INVALID_ARG field
COMMON_GETQUEUEDEPTH_ERROR_NO_STORE_ID field
COMMON_INIT_ERROR field
COMMON_INIT_THREAD_ERROR field
COMMON_INVALID_PROPERTY field
COMMON_MSG_ACKNOWLEDGE_ERROR field
COMMON_MSG_CANCEL_ERROR field
COMMON_MSG_CANCEL_ERROR_SENT field
COMMON_MSG_NOT_WRITEABLE_ERROR field
COMMON_MSG_RETRIEVE_ERROR field
COMMON_MSG_STORE_ERROR field
COMMON_MSG_STORE_NOT_INITIALIZED field
COMMON_MSG_STORE_TOO_LARGE field
COMMON_NO_DEST_ERROR field
COMMON_NO_IMPLEMENTATION field
COMMON_NOT_OPEN_ERROR field
COMMON_OPEN_ERROR field
COMMON_OPEN_LOG_FILE_ERROR field
COMMON_OPEN_MAXTHREADS_ERROR field
COMMON_REOPEN_ERROR field
COMMON_SELECTOR_SYNTAX_ERROR field
COMMON_SET_PROPERTY_ERROR field
COMMON_TERMINATE_ERROR field
COMMON_UNEXPECTED_EOM_ERROR field
COMMON_UNREPRESENTABLE_TIMESTAMP field
QA_NO_ERROR field
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |
