Package com.ms.com Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class ComSuccessException

Constructors

public class com.ms.com.ComSuccessException

    extends com.ms.com.ComException

{

    // Constructors
    public ComSuccessException();
    public ComSuccessException(int hr);
    public ComSuccessException(String message);
    public ComSuccessException(int hr, String message);

}

ComSuccessException indicates a success. The exception object wraps an HRESULT, the return type for most methods in the Component Object Model (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, simply have the method return as usual.

See also ComException, ComFailException, package com.ms.com


Constructors


ComSuccessException

public ComSuccessException( );
public ComSuccessException( int hr );
public ComSuccessException( String message );
public ComSuccessException( int hr, String message );

Constructs a new ComSuccessException object. Throw a ComSuccessException object in order to signal a successful return when implementing a COM class using Java.

ParameterDescription
hr The HRESULT to return.
message The detail message.



Top© 1996 Microsoft Corporation. All rights reserved.