Package com.ms.com Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class ComSuccessException

Constructors

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.


Constructors


ComSuccessException

public ComSuccessException(int hr)

Stores a ComSuccessException.

ParameterDescription
hr The HRESULT value to be returned.


ComSuccessException

public ComSuccessException(int hr, String message)

Stores a ComSuccessException.

ParameterDescription
hr The HRESULT value to be returned.
message The detail message.


ComSuccessException

public ComSuccessException(int hr, String source, String helpFile, int helpContext)

Stores a ComSuccessException.

ParameterDescription
hr HRESULT value to be returned.
message The detail message.
helpFile The help file for the ComSuccessException.
helpContext The help context of the ComSuccessException.


ComSuccessException

public ComSuccessException(int hr, String description, String source, String helpFile, int helpContext)

Stores a ComSuccessException.

ParameterDescription
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.


ComSuccessException

public ComSuccessException()

Stores a ComSuccessException.


ComSuccessException

public ComSuccessException(String message)

Stores a ComSuccessException.

ParameterDescription
message The detail message.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.