com.javaparts.dde
Class DDEException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.javaparts.dde.DDEException
All Implemented Interfaces:
java.io.Serializable

public class DDEException
extends java.lang.Exception

Signals that DDE operation has failed and encapsulates the DDEML error code and error message. The follwing table describes possible error codes and their meaning:

Error CodeDescription
0x0000No error
0x4000A request for a synchronous advise transaction has timed out.
0x4001The response to the transaction caused the BUSY flag to be set.
0x4002A request for a synchronous data transaction has timed out.
0x4003An instance of DDE was not initialized.
0x4004Unsupported transaction.
0x4005A request for a synchronous execute transaction has timed out.
0x4006A parameter failed to be validated by the DDE.
0x4007An application has created a prolonged race condition, causing large amounts of memory to be consumed.
0x4008A memory allocation has failed.
0x4009A transaction has failed (was rejected by server).
0x400AA client's attempt to establish a conversation has failed.
0x400BA request for a synchronous poke transaction has timed out.
0x400CAn internal call to the PostMessage function has failed.
0x400DAn application instance with a synchronous transaction already in progress attempted to initiate another synchronous transaction.
0x400EA server-side transaction was attempted on a conversation terminated by the client, or the server terminated before completing a transaction.
0x400FAn internal error has occurred in the DDEML.
0x4010A request to end an advise transaction has timed out.
0x4011An invalid transaction identifier was passed to an ascync transaction handler.

See Also:
Serialized Form

Constructor Summary
DDEException(java.lang.String msg, int code)
          Create new instance of the DDEException with given message and error code.
 
Method Summary
 int getErrorCode()
          Get the DDEML error code.
 java.lang.String getMessage()
          Get the description of the error.
 java.lang.String getOriginalMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDEException

public DDEException(java.lang.String msg,
                    int code)
Create new instance of the DDEException with given message and error code.

Parameters:
msg - description of the error.
code - DDEML error code.
Method Detail

getErrorCode

public int getErrorCode()
Get the DDEML error code.

Returns:
error code.

getMessage

public java.lang.String getMessage()
Get the description of the error.

Returns:
error message.

getOriginalMessage

public java.lang.String getOriginalMessage()