Microsoft SDK for Java

AdoException Class Constructors

The AdoException class contains the following constructors:

AdoException(int id)
AdoException(int hr, String s)
AdoException(String s)

AdoException(int id)

Creates an AdoException object that includes a specific error number.

Syntax

public AdoException(int id);

Parameters

id An integer specifying an error number. Specify one of the constants defined in the AdoEnums.ErrorValue class.

AdoException(int hr, String s)

Creates an AdoException object that includes an HRESULT and an associated exception message.

Syntax

public AdoException(int hr, String s);

Parameters

hr An integer specifying an HRESULT returned by COM. This value is converted to a compatible error number.
s The message associated with the exception.

AdoException(String s)

Creates an AdoException object including an associated exception message.

Syntax

public AdoException(String s);

Parameters

s The message associated with the exception.

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