Throws an appropriate exception based on the passed in error code.
The <code>hresult</code> argument should be either 0, or the
platform specific error code.
<p>
In DND, errors are reported by throwing one of three exceptions:
<dl>
<dd>java.lang.IllegalArgumentException</dd>
<dt>thrown whenever one of the API methods is invoked with an illegal argument</dt>
<dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd>
<dt>thrown whenever a recoverable error happens internally in SWT</dt>
<dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd>
<dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt>
</dl>
This method provides the logic which maps between error codes
and one of the above exceptions.
</p>
@param code the DND error code.
@param hresult the platform specific error code.
Throws an appropriate exception based on the passed in error code. The <code>hresult</code> argument should be either 0, or the platform specific error code. <p> In DND, errors are reported by throwing one of three exceptions: <dl> <dd>java.lang.IllegalArgumentException</dd> <dt>thrown whenever one of the API methods is invoked with an illegal argument</dt> <dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd> <dt>thrown whenever a recoverable error happens internally in SWT</dt> <dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd> <dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt> </dl> This method provides the logic which maps between error codes and one of the above exceptions. </p>
@param code the DND error code. @param hresult the platform specific error code.
@see SWTError @see SWTException @see IllegalArgumentException