Package com.ms.com |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class ComSuccessException extends ComException { // Constructors public ComSuccessException(int hr) public ComSuccessException(int hr, String message) public ComSuccessException(int hr, String source, String helpFile, int helpContext) public ComSuccessException(int hr, String description, String source, String helpFile, int helpContext) public ComSuccessException() public ComSuccessException(String message) }
The ComSuccessException class wraps an HRESULT, the return type for most methods in the Component Object Module (COM). The default value of the HRESULT stored in a ComSuccessException is S_FALSE (0x00000001L), which is used to indicate the successful completion of a method returning a Boolean FALSE value.
To return an S_OK value when implementing a COM method in Java, code the method to return as usual.
public ComSuccessException(int hr)Stores a ComSuccessException.
Parameter Description hr The HRESULT value to be returned.
public ComSuccessException(int hr, String message)Stores a ComSuccessException.
Parameter Description hr The HRESULT value to be returned. message The detail message.
public ComSuccessException(int hr, String source, String helpFile, int helpContext)Stores a ComSuccessException.
Parameter Description hr HRESULT value to be returned. message The detail message. helpFile The help file for the ComSuccessException. helpContext The help context of the ComSuccessException.
public ComSuccessException(int hr, String description, String source, String helpFile, int helpContext)Stores a ComSuccessException.
Parameter Description hr The HRESULT value to be returned. message The detail message. source The source of the ComSuccessException. helpFile The help file for the ComSuccessException. helpContext The help context of the ComSuccessException.
public ComSuccessException()Stores a ComSuccessException.
public ComSuccessException(String message)Stores a ComSuccessException.
Parameter Description message The detail message.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.