Microsoft SDK for Java

ComFailException Class Constructors

The ComFailException Class contains the following constructors:

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

ComFailException(int hr)

Creates a ComFailException object that contains the specified HRESULT.

Syntax

public ComFailException(int hr);

Parameters

hr The HRESULT value that is returned.

ComFailException(int hr, String message)

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

Syntax

public ComFailException(int hr, String message);

Parameters

hr The HRESULT value that is returned.
message The detail description.

ComFailException(int hr, String source, String helpFile)

Creates a ComFailException object that contains the specified HRESULT, source, help file, and help context.

Syntax

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

Parameters

hr The HRESULT value that is returned.
source The source of the ComFailException object.
helpFile The Help file for the ComFailException object.
helpContext The identifier that indicates the context of the exception.

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

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

Syntax

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

Parameters

hr The HRESULT value that is returned.
description The detail description.
source The source of the ComFailException object.
helpFile The Help file for the ComFailException object.
helpContext The identifier that indicates the context of the exception.

ComFailException()

Creates a ComFailException object. The default value of the HRESULT stored in the object is E_FAIL (0x80004005L).

Syntax

public ComFailException();

ComFailException(String message)

Creates a ComFailException object that contains the specified detail description. The default value of the HRESULT stored in the object is E_FAIL (0x80004005L).

Syntax

public ComFailException(String message);

Parameters

message The detail description.

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