LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPLocalException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.novell.ldap.LDAPException
              extended bycom.novell.ldap.LDAPLocalException
All Implemented Interfaces:
java.io.Serializable

public class LDAPLocalException
extends LDAPException

Represents an LDAP exception that is not a result of a server response.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.novell.ldap.LDAPException
ADMIN_LIMIT_EXCEEDED, AFFECTS_MULTIPLE_DSAS, ALIAS_DEREFERENCING_PROBLEM, ALIAS_PROBLEM, AMBIGUOUS_RESPONSE, ATTRIBUTE_OR_VALUE_EXISTS, AUTH_METHOD_NOT_SUPPORTED, AUTH_UNKNOWN, BUSY, CLIENT_LOOP, COMPARE_FALSE, COMPARE_TRUE, CONFIDENTIALITY_REQUIRED, CONNECT_ERROR, CONSTRAINT_VIOLATION, CONTROL_NOT_FOUND, DECODING_ERROR, ENCODING_ERROR, ENTRY_ALREADY_EXISTS, FILTER_ERROR, INAPPROPRIATE_AUTHENTICATION, INAPPROPRIATE_MATCHING, INSUFFICIENT_ACCESS_RIGHTS, INVALID_ATTRIBUTE_SYNTAX, INVALID_CREDENTIALS, INVALID_DN_SYNTAX, INVALID_RESPONSE, IS_LEAF, LDAP_NOT_SUPPORTED, LDAP_PARTIAL_RESULTS, LDAP_TIMEOUT, LOCAL_ERROR, LOOP_DETECT, MORE_RESULTS_TO_RETURN, NAMING_VIOLATION, NO_MEMORY, NO_RESULTS_RETURNED, NO_SUCH_ATTRIBUTE, NO_SUCH_OBJECT, NOT_ALLOWED_ON_NONLEAF, NOT_ALLOWED_ON_RDN, OBJECT_CLASS_MODS_PROHIBITED, OBJECT_CLASS_VIOLATION, OPERATIONS_ERROR, OTHER, PROTOCOL_ERROR, REFERRAL, REFERRAL_LIMIT_EXCEEDED, SASL_BIND_IN_PROGRESS, SERVER_DOWN, SIZE_LIMIT_EXCEEDED, STRONG_AUTH_REQUIRED, SUCCESS, TIME_LIMIT_EXCEEDED, TLS_NOT_SUPPORTED, UNAVAILABLE, UNAVAILABLE_CRITICAL_EXTENSION, UNDEFINED_ATTRIBUTE_TYPE, UNWILLING_TO_PERFORM, USER_CANCELLED
 
Constructor Summary
LDAPLocalException()
          Constructs a default exception with no specific error information.
LDAPLocalException(java.lang.String messageOrKey, int resultCode)
          Constructs a local exception with a detailed message obtained from the specified MessageOrKey String and the result code.
LDAPLocalException(java.lang.String messageOrKey, int resultCode, java.lang.Throwable rootException)
          Constructs a local exception with a detailed message obtained from the specified MessageOrKey String.
LDAPLocalException(java.lang.String messageOrKey, java.lang.Object[] arguments, int resultCode)
          Constructs a local exception with a detailed message obtained from the specified MessageOrKey String and modifying arguments.
LDAPLocalException(java.lang.String messageOrKey, java.lang.Object[] arguments, int resultCode, java.lang.Throwable rootException)
          Constructs a local exception with a detailed message obtained from the specified MessageOrKey String and modifying arguments.
 
Method Summary
 java.lang.String toString()
          returns a string of information about the exception and the the nested exceptions, if any.
 
Methods inherited from class com.novell.ldap.LDAPException
getCause, getLDAPErrorMessage, getLocalizedMessage, getMatchedDN, getMessage, getResultCode, resultCodeToString, resultCodeToString, resultCodeToString, resultCodeToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPLocalException

public LDAPLocalException()
Constructs a default exception with no specific error information.


LDAPLocalException

public LDAPLocalException(java.lang.String messageOrKey,
                          int resultCode)
Constructs a local exception with a detailed message obtained from the specified MessageOrKey String and the result code.
The String is used either as a message key to obtain a localized messsage from ExceptionMessages, or if there is no key in the resource matching the text, it is used as the detailed message itself.

Parameters:
messageOrKey - Key to addition result information, a key into ExceptionMessages, or the information itself if the key doesn't exist.

resultCode - The result code returned.

LDAPLocalException

public LDAPLocalException(java.lang.String messageOrKey,
                          java.lang.Object[] arguments,
                          int resultCode)
Constructs a local exception with a detailed message obtained from the specified MessageOrKey String and modifying arguments. Additional parameters specify the result code.
The String is used either as a message key to obtain a localized messsage from ExceptionMessages, or if there is no key in the resource matching the text, it is used as the detailed message itself.
The message in the default locale is built with the supplied arguments, which are saved to be used for building messages for other locales.

Parameters:
messageOrKey - Key to addition result information, a key into ExceptionMessages, or the information itself if the key doesn't exist.

arguments - The modifying arguments to be included in the message string.

resultCode - The result code returned.

LDAPLocalException

public LDAPLocalException(java.lang.String messageOrKey,
                          int resultCode,
                          java.lang.Throwable rootException)
Constructs a local exception with a detailed message obtained from the specified MessageOrKey String. Additional parameters specify the result code and a rootException which is the underlying cause of an error on the client.
The String is used either as a message key to obtain a localized messsage from ExceptionMessages, or if there is no key in the resource matching the text, it is used as the detailed message itself.

Parameters:
messageOrKey - Key to addition result information, a key into ExceptionMessages, or the information itself if the key doesn't exist.

resultCode - The result code returned.

rootException - A throwable which is the underlying cause of the LDAPException.

LDAPLocalException

public LDAPLocalException(java.lang.String messageOrKey,
                          java.lang.Object[] arguments,
                          int resultCode,
                          java.lang.Throwable rootException)
Constructs a local exception with a detailed message obtained from the specified MessageOrKey String and modifying arguments. Additional parameters specify the result code and a rootException which is the underlying cause of an error on the client.
The String is used either as a message key to obtain a localized messsage from ExceptionMessages, or if there is no key in the resource matching the text, it is used as the detailed message itself.
The message in the default locale is built with the supplied arguments, which are saved to be used for building messages for other locales.

Parameters:
messageOrKey - Key to addition result information, a key into ExceptionMessages, or the information itself if the key doesn't exist.

arguments - The modifying arguments to be included in the message string.

resultCode - The result code returned.

rootException - A throwable which is the underlying cause of the LDAPException.
Method Detail

toString

public java.lang.String toString()
returns a string of information about the exception and the the nested exceptions, if any.

Overrides:
toString in class LDAPException

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000