Microsoft HomeProductsSearchSupportShopWrite Usspacer.gif Microsoft Home
Microsoft Packages
  In this topic

*Constructors

*Methods

*Fields

 

Packages   Previous Microsoft Packages Next
Package com.ms.adsi   Previous This
Package
Next

 


Class IADsException

public class IADsException extends Exception
{
  // Fields
  public final static int E_ADS_AUTHENT_MODE_NOT_SUPPORTED;
  public final static int E_ADS_BAD_PARAMETER;
  public final static int E_ADS_BAD_PATHNAME;
  public final static int E_ADS_CANT_CONVERT_DATATYPE;
  public final static int E_ADS_FAILED_DELETE_SCHEMA_INFO;
  public final static int E_ADS_FAILED_READ_SCHEMA_INFO;
  public final static int E_ADS_INVALID_COMPUTER_OBJECT;
  public final static int E_ADS_INVALID_DOMAIN_OBJECT;
  public final static int E_ADS_INVALID_USER_OBJECT;
  public final static int E_ADS_NO_MORE_COLUMNS;
  public final static int E_ADS_NO_MORE_ROWS;
  public final static int E_ADS_NO_SUCH_COLUMN;
  public final static int E_ADS_NOT_IMPLEMENTED;
  public final static int E_ADS_OBJECT_EXISTS;
  public final static int E_ADS_OBJECT_UNBOUND;
  public final static int E_ADS_PROPERTY_INVALID;
  public final static int E_ADS_PROPERTY_MODIFIED;
  public final static int E_ADS_PROPERTY_NOT_FOUND;
  public final static int E_ADS_PROPERTY_NOT_MODIFIED;
  public final static int E_ADS_PROPERTY_NOT_SET;
  public final static int E_ADS_PROPERTY_NOT_SUPPORTED;
  public final static int E_ADS_SCHEMA_VIOLATION;
  public final static int E_ADS_SEARCH_FAILED;
  public final static int E_ADS_UNKNOWN_OBJECT;

  // Constructors
  public IADsException(int error);
  public IADsException(String s, int error);

  // Methods
  static public IADsException DefaultExce(int error);
  public int getError();
  public String toString();
}

This class implements the exception used in IADs.

Also see Also Active Directory Design Specification Version 1.0

Exception
  |
  +--IADsException

Constructors

IADsException

public IADsException(int error);

Constructs an IADsException with a default message, that depends on the error code passed in.

IADsException

public IADsException(String s, int error);

Constructs an IADsException with the specified detail message.

ParameterDescription
sthe detail message
errorerror type

Methods

DefaultExce 

static public IADsException DefaultExce(int error);

This static method has been provided as a convenient alternative to providing string values always. The method returns an IADsException which has the standard error message set for the error in question. !param error, the error type (int value).

Return Value

Returns IADsException, an IADsException which can be thrown

getError 

public int getError();

Retrieves error type.

Return Value

Returns error type

toString 

public String toString();

Fields 

E_ADS_AUTHENT_MODE_NOT_SUPPORTED
E_ADS_BAD_PARAMETER
E_ADS_BAD_PATHNAME
E_ADS_CANT_CONVERT_DATATYPE
E_ADS_FAILED_DELETE_SCHEMA_INFO
E_ADS_FAILED_READ_SCHEMA_INFO
E_ADS_INVALID_COMPUTER_OBJECT
E_ADS_INVALID_DOMAIN_OBJECT
E_ADS_INVALID_USER_OBJECT
E_ADS_NO_MORE_COLUMNS
E_ADS_NO_MORE_ROWS
E_ADS_NO_SUCH_COLUMN
E_ADS_NOT_IMPLEMENTED
E_ADS_OBJECT_EXISTS
E_ADS_OBJECT_UNBOUND
E_ADS_PROPERTY_INVALID
E_ADS_PROPERTY_MODIFIED
E_ADS_PROPERTY_NOT_FOUND
E_ADS_PROPERTY_NOT_MODIFIED
E_ADS_PROPERTY_NOT_SET
E_ADS_PROPERTY_NOT_SUPPORTED
E_ADS_SCHEMA_VIOLATION
E_ADS_SEARCH_FAILED
E_ADS_UNKNOWN_OBJECT

Back To Top © 1997 Microsoft Corporation. All rights reserved. Terms of use.