Microsoft SDK for Java

ComSuccessException Class Constructors

The ComSuccessException Class contains the following constructors:

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

ComSuccessException(int hr)

Creates a ComSuccessException object that contains the specified HRESULT.

Syntax

public ComSuccessException(int hr);

Parameters

hr The HRESULT that a COM method returns.

ComSuccessException(int hr, String message)

Creates a ComSuccessException object that contains the specified HRESULT and a detail description.

Syntax

public ComSuccessException(int hr, String message);

Parameters

hr The HRESULT that a COM method returns.
message The detail description.

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

Creates a ComSuccessException object that contains the specified HRESULT, a detail description, a Help file, and the Help context.

Syntax

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

Parameters

hr The HRESULT that a COM method returns.
source The detail description.
helpFile The Help file for the ComSuccessException object.
helpContext The identifier that indicates the context of the exception.

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

Creates a ComSuccessException object that contains the specified HRESULT, detail description, source, a Help file, and Help context.

Syntax

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

Parameters

hr The HRESULT that the COM method returns.
description The detail description.
source The source of the ComSuccessException.
helpFile The Help file for the ComSuccessException object.
helpContext The identifier that indicates the context of the exception.

ComSuccessException()

Creates a ComSuccessException object. The default value of the HRESULT stored in the object is S_FALSE (0x00000001L). This value indicates the successful completion of a method that returns a boolean value of false.

Syntax

public ComSuccessException();

ComSuccessException(String message)

Creates a ComSuccessException object that contains the specified detail description. The default value of the HRESULT stored in the object is S_FALSE (0x00000001L). This value indicates the successful completion of a method that returns a boolean value of false.

Syntax

public ComSuccessException(String message);

Parameters

message The detail description.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.