|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.stc.connector.comadapter.comruntime.STCComException
public class STCComException
The STCComException is the exception type that can be thrown from methods on the STCDispatch. It is for use by the COM runtime only.
If one of the methods (invoke, etc.) fails on the STCDispatch class, an exception of this type is thrown. The exception is not caught by the builder-generated code; it is up to the user to catch it if desired. This provides a mechanism for the Collaboration code to detect when a failure happens at the lower level and why. Access to the COM HRESULT is provided as well as the description of the HRESULT from the operating system, if available.
STCIDispatch
,
Serialized FormConstructor Summary | |
---|---|
STCComException(int hr,
java.lang.String sOp)
Constructor for the exception class. |
|
STCComException(int hr,
java.lang.String sOp,
java.lang.String error)
Constructor for the exception class. |
Method Summary | |
---|---|
STCHResult |
getComError()
Gets the Com error. |
java.lang.String |
getMessage()
Gets the message and error text. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public STCComException(int hr, java.lang.String sOp, java.lang.String error)
"Invoking foo or getting
property bar"
.
hr
- The HRESULT from the method that failed.sOp
- A context string to indicate what you were doingerror
- A user error message
public STCComException(int hr, java.lang.String sOp)
"Invoking foo or getting
property bar"
.
hr
- This is the HRESULT from the method that failed.sOp
- A context string to indicate what you were doing
that caused the error.
Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
String
- Returns the message.
public STCHResult getComError()
STCHResult
- Returns the hResult.
|
Sun Adapter for COM/DCOM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |