| Package com.ms.com |
Previous |
Microsoft Packages |
Index |
Next |
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);
}
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
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.
Parameter Description hr HRESULT value to be returned. message The detail message.
| © 1997 Microsoft Corporation. All rights reserved. Terms of Use. |