com.jniwrapper.win32.dde
Class DdeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jniwrapper.win32.dde.DdeException
All Implemented Interfaces:
java.io.Serializable

public class DdeException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
static int ADVACKTIMEOUT
          A request for a synchronous advise transaction has timed out.
static int BUSY
          The response to the transaction caused the DDE_FBUSY flag to be set.
static int DATAACKTIMEOUT
          A request for a synchronous data transaction has timed out.
static int DLL_NOT_INITIALIZED
          A DDEML function was called without first calling the DdeInitialize function, or an invalid instance identifier was passed to a DDEML function.
static int DLL_USAGE
          An application initialized as APPCLASS_MONITOR has attempted to perform a Dynamic Data Exchange (DDE) transaction, or an application initialized as APPCMD_CLIENTONLY has attempted to perform server transactions.
static int EXECACKTIMEOUT
          A request for a synchronous execute transaction has timed out.
static int INVALIDPARAMETER
          A parameter failed to be validated by the DDEML.
static int LOW_MEMORY
          A DDEML application has created a prolonged race condition (in which the server application outruns the client), causing large amounts of memory to be consumed.
static int MEMORY_ERROR
          A memory allocation has failed.
static int NO_CONV_ESTABLISHED
          Attempt of the client to establish a conversation has failed.
static int NO_ERROR
          The function succeeds
static int NOTPROCESSED
          A transaction has failed.
static int POKEACKTIMEOUT
          A request for a synchronous poke transaction has timed out.
static int POSTMSG_FAILED
          An internal call to the PostMessage function has failed.
static int REENTRANCY
          A synchronous transaction already in progress.
static int SERVER_DIED
          A server-side transaction was attempted on a conversation terminated by the client.
static int SYS_ERROR
          An internal error has occurred in the DDEML.
static int UNADVACKTIMEOUT
          A request to end an advise transaction has timed out.
static int UNFOUND_QUEUE_ID
          An invalid transaction identifier was passed to a DDEML function.
 
Constructor Summary
DdeException(int errorCode)
          Creates an instance of the class with the specified error code
DdeException(java.lang.String message)
          Creates an instance of the class with the specified error message.
 
Method Summary
 int getErrorCode()
          Returns the error code.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ERROR

public static final int NO_ERROR
The function succeeds

See Also:
Constant Field Values

ADVACKTIMEOUT

public static final int ADVACKTIMEOUT
A request for a synchronous advise transaction has timed out.

See Also:
Constant Field Values

BUSY

public static final int BUSY
The response to the transaction caused the DDE_FBUSY flag to be set.

See Also:
Constant Field Values

DATAACKTIMEOUT

public static final int DATAACKTIMEOUT
A request for a synchronous data transaction has timed out.

See Also:
Constant Field Values

DLL_NOT_INITIALIZED

public static final int DLL_NOT_INITIALIZED
A DDEML function was called without first calling the DdeInitialize function, or an invalid instance identifier was passed to a DDEML function.

See Also:
Constant Field Values

DLL_USAGE

public static final int DLL_USAGE
An application initialized as APPCLASS_MONITOR has attempted to perform a Dynamic Data Exchange (DDE) transaction, or an application initialized as APPCMD_CLIENTONLY has attempted to perform server transactions.

See Also:
Constant Field Values

EXECACKTIMEOUT

public static final int EXECACKTIMEOUT
A request for a synchronous execute transaction has timed out.

See Also:
Constant Field Values

INVALIDPARAMETER

public static final int INVALIDPARAMETER
A parameter failed to be validated by the DDEML.

See Also:
Constant Field Values

LOW_MEMORY

public static final int LOW_MEMORY
A DDEML application has created a prolonged race condition (in which the server application outruns the client), causing large amounts of memory to be consumed.

See Also:
Constant Field Values

MEMORY_ERROR

public static final int MEMORY_ERROR
A memory allocation has failed.

See Also:
Constant Field Values

NOTPROCESSED

public static final int NOTPROCESSED
A transaction has failed.

See Also:
Constant Field Values

NO_CONV_ESTABLISHED

public static final int NO_CONV_ESTABLISHED
Attempt of the client to establish a conversation has failed.

See Also:
Constant Field Values

POKEACKTIMEOUT

public static final int POKEACKTIMEOUT
A request for a synchronous poke transaction has timed out.

See Also:
Constant Field Values

POSTMSG_FAILED

public static final int POSTMSG_FAILED
An internal call to the PostMessage function has failed.

See Also:
Constant Field Values

REENTRANCY

public static final int REENTRANCY
A synchronous transaction already in progress.

See Also:
Constant Field Values

SERVER_DIED

public static final int SERVER_DIED
A server-side transaction was attempted on a conversation terminated by the client.

See Also:
Constant Field Values

SYS_ERROR

public static final int SYS_ERROR
An internal error has occurred in the DDEML.

See Also:
Constant Field Values

UNADVACKTIMEOUT

public static final int UNADVACKTIMEOUT
A request to end an advise transaction has timed out.

See Also:
Constant Field Values

UNFOUND_QUEUE_ID

public static final int UNFOUND_QUEUE_ID
An invalid transaction identifier was passed to a DDEML function.

See Also:
Constant Field Values
Constructor Detail

DdeException

public DdeException(int errorCode)
Creates an instance of the class with the specified error code

Parameters:
errorCode - Error code

DdeException

public DdeException(java.lang.String message)
Creates an instance of the class with the specified error message.

Parameters:
message - Error message
Method Detail

getErrorCode

public int getErrorCode()
Returns the error code.

Returns:
the error code.