|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.isis.jaut.ComException
A runtime exception thrown by the COM and Automation functions.
Field Summary | |
static int |
CO_E_NOTINITIALIZED
|
static int |
DISP_E_BADVARTYPE
|
static int |
DISP_E_OVERFLOW
|
static int |
DISP_E_TYPEMISMATCH
|
static int |
E_INVALIDARG
|
static int |
E_OUTOFMEMORY
|
protected int |
hResult
The HRESULT value. |
Constructor Summary | |
ComException(int hResult)
Creates an exception for a COM error code. |
Method Summary | |
static java.lang.String |
formatMessage(int hResult)
Retrives the error message of an error code. |
int |
getErrorCode()
Returns the error code for this exception. |
java.lang.String |
getMessage()
Returns the detailed message string for this exception. |
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 |
Field Detail |
public static final int E_INVALIDARG
public static final int E_OUTOFMEMORY
public static final int DISP_E_BADVARTYPE
public static final int DISP_E_OVERFLOW
public static final int DISP_E_TYPEMISMATCH
public static final int CO_E_NOTINITIALIZED
protected int hResult
HRESULT
value.
Constructor Detail |
public ComException(int hResult)
hResult
- the COM error code (HRESULT
or SCODE
).Method Detail |
public int getErrorCode()
HRESULT
or SCODE
) of this exception.public java.lang.String getMessage()
formatMessage(int)
,
getErrorCode()
public static java.lang.String formatMessage(int hResult)
FormatMessage
Win32 function.
hResult
- the COM error code (HRESULT
or SCODE
).
null
if no message could be found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |