All LDAP Classes
Internal LDAP Classes

org.ietf.ldap
Class LDAPException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.ietf.ldap.LDAPException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LDAPLocalException, LDAPReferralException

public class LDAPException
extends java.lang.Exception

Thrown to indicate that an LDAP error has occurred. This is a general exception which includes an error message and an LDAP error code.

See Also:
com.novell.ldap.LDAPException, Serialized Form

Field Summary
static int ADMIN_LIMIT_EXCEEDED
          Indicates that an LDAP server limit set by an administrative authority has been exceeded.
static int AFFECTS_MULTIPLE_DSAS
          Indicates that the modify DN operation moves the entry from one LDAP server to another and thus requires more than one LDAP server.
static int ALIAS_DEREFERENCING_PROBLEM
          Indicates that during a search operation, either the client does not have access rights to read the aliased object's name or dereferencing is not allowed.
static int ALIAS_PROBLEM
          Indicates that an error occurred when an alias was dereferenced.
static int AMBIGUOUS_RESPONSE
          Indicates that the server response to a request is ambiguous
static int ATTRIBUTE_OR_VALUE_EXISTS
          Indicates that the attribute value specified in a modify or add operation already exists as a value for that attribute.
static int AUTH_METHOD_NOT_SUPPORTED
          Indicates that during a bind operation the client requested an authentication method not supported by the LDAP server.
static int AUTH_UNKNOWN
          Indicates that a bind method was called with an unknown authentication method.
static int BUSY
          Indicates that the LDAP server is too busy to process the client request at this time, but if the client waits and resubmits the request, the server may be able to process it then.
static int CLIENT_LOOP
          Indicates the LDAP libraries detected a loop.
static int COMPARE_FALSE
          Does not indicate an error condition.
static int COMPARE_TRUE
          Does not indicate an error condition.
static int CONFIDENTIALITY_REQUIRED
          Indicates that the session is not protected by a protocol such as Transport Layer Security (TLS), which provides session confidentiality.
static int CONNECT_ERROR
          Indicates that the LDAP client has lost either its connection or cannot establish a connection to the LDAP server.
static int CONSTRAINT_VIOLATION
          Indicates that the attribute value specified in a modify, add, or modify DN operation violates constraints placed on the attribute.
static int CONTROL_NOT_FOUND
          Indicates that the client requested a control that the libraries cannot find in the list of supported controls sent by the LDAP server.
static int DECODING_ERROR
          Indicates that the LDAP client encountered errors when decoding an LDAP response from the LDAP server.
static int ENCODING_ERROR
          Indicates that the LDAP client encountered errors when encoding an LDAP request intended for the LDAP server.
static int ENTRY_ALREADY_EXISTS
          Indicates that the add operation attempted to add an entry that already exists, or that the modify operation attempted to rename an entry to the name of an entry that already exists.
private  LDAPException exception
           
static int FILTER_ERROR
          Indicates that the search method was called with an invalid search filter.
static int INAPPROPRIATE_AUTHENTICATION
          Indicates that during a bind operation, the client is attempting to use an authentication method that the client cannot use correctly.
static int INAPPROPRIATE_MATCHING
          Indicates that the matching rule specified in the search filter does not match a rule defined for the attribute's syntax.
static int INSUFFICIENT_ACCESS_RIGHTS
          Indicates that the caller does not have sufficient rights to perform the requested operation.
static int INVALID_ATTRIBUTE_SYNTAX
          Indicates that the attribute value specified in an add, compare, or modify operation is an unrecognized or invalid syntax for the attribute.
static int INVALID_CREDENTIALS
          Indicates that invalid information was passed during a bind operation.
static int INVALID_DN_SYNTAX
          Indicates that the syntax of the DN is incorrect.
static int INVALID_RESPONSE
          Indicates that the server response to a request is invalid
static int IS_LEAF
          Indicates that the specified operation cannot be performed on a leaf entry.
static int LDAP_NOT_SUPPORTED
          Indicates that the requested functionality is not supported by the client.
static int LDAP_TIMEOUT
          Indicates that the time limit of the LDAP client was exceeded while waiting for a result.
static int LOCAL_ERROR
          Indicates that the LDAP client has an error.
static int LOOP_DETECT
          Indicates that the client discovered an alias or referral loop, and is thus unable to complete this request.
static int MORE_RESULTS_TO_RETURN
          Indicates that more results are chained in the result message.
static int NAMING_VIOLATION
          Indicates that the add or modify DN operation violates the schema's structure rules.
static int NO_MEMORY
          Indicates that a dynamic memory allocation method failed when calling an LDAP method.
static int NO_RESULTS_RETURNED
          Indicates that the LDAP server sent no results.
static int NO_SUCH_ATTRIBUTE
          Indicates that the attribute specified in the modify or compare operation does not exist in the entry.
static int NO_SUCH_OBJECT
          Indicates the target object cannot be found.
static int NOT_ALLOWED_ON_NONLEAF
          Indicates that the requested operation is permitted only on leaf entries.
static int NOT_ALLOWED_ON_RDN
          Indicates that the modify operation attempted to remove an attribute value that forms the entry's relative distinguished name.
static int OBJECT_CLASS_MODS_PROHIBITED
          Indicates that the modify operation attempted to modify the structure rules of an object class.
static int OBJECT_CLASS_VIOLATION
          Indicates that the add, modify, or modify DN operation violates the object class rules for the entry.
static int OPERATIONS_ERROR
          Indicates an internal error.
static int OTHER
          Indicates an unknown error condition.
static int PROTOCOL_ERROR
          Indicates that the server has received an invalid or malformed request from the client.
static int REFERRAL
          Does not indicate an error condition.
static int REFERRAL_LIMIT_EXCEEDED
          Indicates that the referral exceeds the hop limit.
static int SASL_BIND_IN_PROGRESS
          Does not indicate an error condition, but indicates that the server is ready for the next step in the process.
static int SERVER_DOWN
          Indicates that the LDAP libraries cannot establish an initial connection with the LDAP server.
static int SIZE_LIMIT_EXCEEDED
          Indicates that in a search operation, the size limit specified by the client or the server has been exceeded.
static int STRONG_AUTH_REQUIRED
          Indicates a problem with the level of authentication.
static int SUCCESS
          Indicates the requested client operation completed successfully.
static int TIME_LIMIT_EXCEEDED
          Indicates that the operation's time limit specified by either the client or the server has been exceeded.
static int TLS_NOT_SUPPORTED
          Indicates that TLS is not supported on the server.
static int UNAVAILABLE
          Indicates that the LDAP server cannot process the client's bind request, usually because it is shutting down.
static int UNAVAILABLE_CRITICAL_EXTENSION
          Indicates that the LDAP server was unable to satisfy a request because one or more critical extensions were not available.
static int UNDEFINED_ATTRIBUTE_TYPE
          Indicates that the attribute specified in the modify or add operation does not exist in the LDAP server's schema.
static int UNWILLING_TO_PERFORM
          Indicates that the LDAP server cannot process the request because of server-defined restrictions.
static int USER_CANCELLED
          Indicates that the user cancelled the LDAP operation.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
  LDAPException()
          Constructs a default exception with no specific error information.
(package private) LDAPException(LDAPException ex)
          Constructs an LDAPException class using com.novell.ldap.LDAPException
  LDAPException(java.lang.String message, int resultCode, java.lang.String serverMessage)
          Constructs an exception with a detailed message String and the result code.
  LDAPException(java.lang.String message, int resultCode, java.lang.String serverMessage, java.lang.String matchedDN)
          Constructs an exception with a detailed message String, result code, and a matchedDN returned from the server.
  LDAPException(java.lang.String message, int resultCode, java.lang.String serverMessage, java.lang.Throwable rootException)
          Constructs an exception with a detailed message String, the result code, and the root exception.
 
Method Summary
 java.lang.Throwable fillInStackTrace()
           
 java.lang.Throwable getCause()
          Returns the lower level Exception which caused the failure, if any.
 java.lang.String getLDAPErrorMessage()
          Returns the error message from the LDAP server, if this message is available (that is, if this message was set).
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMatchedDN()
          Returns the part of a submitted distinguished name which could be matched by the server.
 java.lang.String getMessage()
           
 int getResultCode()
          Returns the result code from the exception.
(package private)  LDAPException getWrappedObject()
          gets the com.novell.ldap.LDAPException object
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 java.lang.String resultCodeToString()
          Returns a string representing the result code in the default locale.
static java.lang.String resultCodeToString(int code)
          Returns a string representing the specified result code in the default locale.
static java.lang.String resultCodeToString(int code, java.util.Locale locale)
          Returns a string representing the specified result code in the specified locale.
 java.lang.String resultCodeToString(java.util.Locale locale)
          Returns a string representing the result code in the specified locale.
 java.lang.String toString()
          Converts the integer error value to a string, in the default locale.
 
Methods inherited from class java.lang.Throwable
getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

private LDAPException exception

SUCCESS

public static final int SUCCESS
Indicates the requested client operation completed successfully.

See Also:
com.novell.ldap.LDAPException.SUCCESS, Constant Field Values

OPERATIONS_ERROR

public static final int OPERATIONS_ERROR
Indicates an internal error.

See Also:
com.novell.ldap.LDAPException.OPERATIONS_ERROR, Constant Field Values

PROTOCOL_ERROR

public static final int PROTOCOL_ERROR
Indicates that the server has received an invalid or malformed request from the client.

See Also:
com.novell.ldap.LDAPException.PROTOCOL_ERROR, Constant Field Values

TIME_LIMIT_EXCEEDED

public static final int TIME_LIMIT_EXCEEDED
Indicates that the operation's time limit specified by either the client or the server has been exceeded.

See Also:
com.novell.ldap.LDAPException.TIME_LIMIT_EXCEEDED, Constant Field Values

SIZE_LIMIT_EXCEEDED

public static final int SIZE_LIMIT_EXCEEDED
Indicates that in a search operation, the size limit specified by the client or the server has been exceeded.

See Also:
com.novell.ldap.LDAPException.SIZE_LIMIT_EXCEEDED, Constant Field Values

COMPARE_FALSE

public static final int COMPARE_FALSE
Does not indicate an error condition. Indicates that the results of a compare operation are false.

See Also:
com.novell.ldap.LDAPException.COMPARE_FALSE, Constant Field Values

COMPARE_TRUE

public static final int COMPARE_TRUE
Does not indicate an error condition. Indicates that the results of a compare operation are true.

See Also:
com.novell.ldap.LDAPException.COMPARE_TRUE, Constant Field Values

AUTH_METHOD_NOT_SUPPORTED

public static final int AUTH_METHOD_NOT_SUPPORTED
Indicates that during a bind operation the client requested an authentication method not supported by the LDAP server.

See Also:
com.novell.ldap.LDAPException.AUTH_METHOD_NOT_SUPPORTED, Constant Field Values

STRONG_AUTH_REQUIRED

public static final int STRONG_AUTH_REQUIRED
Indicates a problem with the level of authentication.

See Also:
com.novell.ldap.LDAPException.STRONG_AUTH_REQUIRED, Constant Field Values

REFERRAL

public static final int REFERRAL
Does not indicate an error condition. In LDAPv3, indicates that the server does not hold the target entry of the request, but that the servers in the referral field may.

See Also:
com.novell.ldap.LDAPException.REFERRAL, Constant Field Values

ADMIN_LIMIT_EXCEEDED

public static final int ADMIN_LIMIT_EXCEEDED
Indicates that an LDAP server limit set by an administrative authority has been exceeded.

See Also:
com.novell.ldap.LDAPException.ADMIN_LIMIT_EXCEEDED, Constant Field Values

UNAVAILABLE_CRITICAL_EXTENSION

public static final int UNAVAILABLE_CRITICAL_EXTENSION
Indicates that the LDAP server was unable to satisfy a request because one or more critical extensions were not available.

See Also:
com.novell.ldap.LDAPException.UNAVAILABLE_CRITICAL_EXTENSION, Constant Field Values

CONFIDENTIALITY_REQUIRED

public static final int CONFIDENTIALITY_REQUIRED
Indicates that the session is not protected by a protocol such as Transport Layer Security (TLS), which provides session confidentiality.

See Also:
com.novell.ldap.LDAPException.CONFIDENTIALITY_REQUIRED, Constant Field Values

SASL_BIND_IN_PROGRESS

public static final int SASL_BIND_IN_PROGRESS
Does not indicate an error condition, but indicates that the server is ready for the next step in the process.

See Also:
com.novell.ldap.LDAPException.SASL_BIND_IN_PROGRESS, Constant Field Values

NO_SUCH_ATTRIBUTE

public static final int NO_SUCH_ATTRIBUTE
Indicates that the attribute specified in the modify or compare operation does not exist in the entry.

See Also:
com.novell.ldap.LDAPException.NO_SUCH_ATTRIBUTE, Constant Field Values

UNDEFINED_ATTRIBUTE_TYPE

public static final int UNDEFINED_ATTRIBUTE_TYPE
Indicates that the attribute specified in the modify or add operation does not exist in the LDAP server's schema.

See Also:
com.novell.ldap.LDAPException.UNDEFINED_ATTRIBUTE_TYPE, Constant Field Values

INAPPROPRIATE_MATCHING

public static final int INAPPROPRIATE_MATCHING
Indicates that the matching rule specified in the search filter does not match a rule defined for the attribute's syntax.

See Also:
com.novell.ldap.LDAPException.INAPPROPRIATE_MATCHING, Constant Field Values

CONSTRAINT_VIOLATION

public static final int CONSTRAINT_VIOLATION
Indicates that the attribute value specified in a modify, add, or modify DN operation violates constraints placed on the attribute.

See Also:
com.novell.ldap.LDAPException.CONSTRAINT_VIOLATION, Constant Field Values

ATTRIBUTE_OR_VALUE_EXISTS

public static final int ATTRIBUTE_OR_VALUE_EXISTS
Indicates that the attribute value specified in a modify or add operation already exists as a value for that attribute.

See Also:
com.novell.ldap.LDAPException.ATTRIBUTE_OR_VALUE_EXISTS, Constant Field Values

INVALID_ATTRIBUTE_SYNTAX

public static final int INVALID_ATTRIBUTE_SYNTAX
Indicates that the attribute value specified in an add, compare, or modify operation is an unrecognized or invalid syntax for the attribute.

See Also:
com.novell.ldap.LDAPException.INVALID_ATTRIBUTE_SYNTAX, Constant Field Values

NO_SUCH_OBJECT

public static final int NO_SUCH_OBJECT
Indicates the target object cannot be found.

See Also:
com.novell.ldap.LDAPException.NO_SUCH_OBJECT, Constant Field Values

ALIAS_PROBLEM

public static final int ALIAS_PROBLEM
Indicates that an error occurred when an alias was dereferenced.

See Also:
com.novell.ldap.LDAPException.ALIAS_PROBLEM, Constant Field Values

INVALID_DN_SYNTAX

public static final int INVALID_DN_SYNTAX
Indicates that the syntax of the DN is incorrect.

See Also:
com.novell.ldap.LDAPException.INVALID_DN_SYNTAX, Constant Field Values

IS_LEAF

public static final int IS_LEAF
Indicates that the specified operation cannot be performed on a leaf entry.

See Also:
com.novell.ldap.LDAPException.IS_LEAF, Constant Field Values

ALIAS_DEREFERENCING_PROBLEM

public static final int ALIAS_DEREFERENCING_PROBLEM
Indicates that during a search operation, either the client does not have access rights to read the aliased object's name or dereferencing is not allowed.

See Also:
com.novell.ldap.LDAPException.ALIAS_DEREFERENCING_PROBLEM, Constant Field Values

INAPPROPRIATE_AUTHENTICATION

public static final int INAPPROPRIATE_AUTHENTICATION
Indicates that during a bind operation, the client is attempting to use an authentication method that the client cannot use correctly.

See Also:
com.novell.ldap.LDAPException.INAPPROPRIATE_AUTHENTICATION, Constant Field Values

INVALID_CREDENTIALS

public static final int INVALID_CREDENTIALS
Indicates that invalid information was passed during a bind operation.

See Also:
com.novell.ldap.LDAPException.INVALID_CREDENTIALS, Constant Field Values

INSUFFICIENT_ACCESS_RIGHTS

public static final int INSUFFICIENT_ACCESS_RIGHTS
Indicates that the caller does not have sufficient rights to perform the requested operation.

See Also:
com.novell.ldap.LDAPException.INSUFFICIENT_ACCESS_RIGHTS, Constant Field Values

BUSY

public static final int BUSY
Indicates that the LDAP server is too busy to process the client request at this time, but if the client waits and resubmits the request, the server may be able to process it then.

See Also:
com.novell.ldap.LDAPException.BUSY, Constant Field Values

UNAVAILABLE

public static final int UNAVAILABLE
Indicates that the LDAP server cannot process the client's bind request, usually because it is shutting down.

See Also:
com.novell.ldap.LDAPException.UNAVAILABLE, Constant Field Values

UNWILLING_TO_PERFORM

public static final int UNWILLING_TO_PERFORM
Indicates that the LDAP server cannot process the request because of server-defined restrictions.

See Also:
com.novell.ldap.LDAPException.UNWILLING_TO_PERFORM, Constant Field Values

LOOP_DETECT

public static final int LOOP_DETECT
Indicates that the client discovered an alias or referral loop, and is thus unable to complete this request.

See Also:
com.novell.ldap.LDAPException.LOOP_DETECT, Constant Field Values

NAMING_VIOLATION

public static final int NAMING_VIOLATION
Indicates that the add or modify DN operation violates the schema's structure rules.

See Also:
com.novell.ldap.LDAPException.NAMING_VIOLATION, Constant Field Values

OBJECT_CLASS_VIOLATION

public static final int OBJECT_CLASS_VIOLATION
Indicates that the add, modify, or modify DN operation violates the object class rules for the entry.

See Also:
com.novell.ldap.LDAPException.OBJECT_CLASS_VIOLATION, Constant Field Values

NOT_ALLOWED_ON_NONLEAF

public static final int NOT_ALLOWED_ON_NONLEAF
Indicates that the requested operation is permitted only on leaf entries.

See Also:
com.novell.ldap.LDAPException.NOT_ALLOWED_ON_NONLEAF, Constant Field Values

NOT_ALLOWED_ON_RDN

public static final int NOT_ALLOWED_ON_RDN
Indicates that the modify operation attempted to remove an attribute value that forms the entry's relative distinguished name.

See Also:
com.novell.ldap.LDAPException.NOT_ALLOWED_ON_RDN, Constant Field Values

ENTRY_ALREADY_EXISTS

public static final int ENTRY_ALREADY_EXISTS
Indicates that the add operation attempted to add an entry that already exists, or that the modify operation attempted to rename an entry to the name of an entry that already exists.

See Also:
com.novell.ldap.LDAPException.ENTRY_ALREADY_EXISTS, Constant Field Values

OBJECT_CLASS_MODS_PROHIBITED

public static final int OBJECT_CLASS_MODS_PROHIBITED
Indicates that the modify operation attempted to modify the structure rules of an object class.

See Also:
com.novell.ldap.LDAPException.OBJECT_CLASS_MODS_PROHIBITED, Constant Field Values

AFFECTS_MULTIPLE_DSAS

public static final int AFFECTS_MULTIPLE_DSAS
Indicates that the modify DN operation moves the entry from one LDAP server to another and thus requires more than one LDAP server.

See Also:
com.novell.ldap.LDAPException.AFFECTS_MULTIPLE_DSAS, Constant Field Values

OTHER

public static final int OTHER
Indicates an unknown error condition.

See Also:
com.novell.ldap.LDAPException.OTHER, Constant Field Values

SERVER_DOWN

public static final int SERVER_DOWN
Indicates that the LDAP libraries cannot establish an initial connection with the LDAP server. Either the LDAP server is down or the specified host name or port number is incorrect.

See Also:
com.novell.ldap.LDAPException.SERVER_DOWN, Constant Field Values

LOCAL_ERROR

public static final int LOCAL_ERROR
Indicates that the LDAP client has an error. This is usually a failed dynamic memory allocation error.

See Also:
com.novell.ldap.LDAPException.LOCAL_ERROR, Constant Field Values

ENCODING_ERROR

public static final int ENCODING_ERROR
Indicates that the LDAP client encountered errors when encoding an LDAP request intended for the LDAP server.

See Also:
com.novell.ldap.LDAPException.ENCODING_ERROR, Constant Field Values

DECODING_ERROR

public static final int DECODING_ERROR
Indicates that the LDAP client encountered errors when decoding an LDAP response from the LDAP server.

See Also:
com.novell.ldap.LDAPException.DECODING_ERROR, Constant Field Values

LDAP_TIMEOUT

public static final int LDAP_TIMEOUT
Indicates that the time limit of the LDAP client was exceeded while waiting for a result.

See Also:
com.novell.ldap.LDAPException.LDAP_TIMEOUT, Constant Field Values

AUTH_UNKNOWN

public static final int AUTH_UNKNOWN
Indicates that a bind method was called with an unknown authentication method.

See Also:
com.novell.ldap.LDAPException.AUTH_UNKNOWN, Constant Field Values

FILTER_ERROR

public static final int FILTER_ERROR
Indicates that the search method was called with an invalid search filter.

See Also:
com.novell.ldap.LDAPException.FILTER_ERROR, Constant Field Values

USER_CANCELLED

public static final int USER_CANCELLED
Indicates that the user cancelled the LDAP operation.

See Also:
com.novell.ldap.LDAPException.USER_CANCELLED, Constant Field Values

NO_MEMORY

public static final int NO_MEMORY
Indicates that a dynamic memory allocation method failed when calling an LDAP method.

See Also:
com.novell.ldap.LDAPException.NO_MEMORY, Constant Field Values

CONNECT_ERROR

public static final int CONNECT_ERROR
Indicates that the LDAP client has lost either its connection or cannot establish a connection to the LDAP server.

See Also:
com.novell.ldap.LDAPException.CONNECT_ERROR, Constant Field Values

LDAP_NOT_SUPPORTED

public static final int LDAP_NOT_SUPPORTED
Indicates that the requested functionality is not supported by the client.

See Also:
com.novell.ldap.LDAPException.LDAP_NOT_SUPPORTED, Constant Field Values

CONTROL_NOT_FOUND

public static final int CONTROL_NOT_FOUND
Indicates that the client requested a control that the libraries cannot find in the list of supported controls sent by the LDAP server.

See Also:
com.novell.ldap.LDAPException.CONTROL_NOT_FOUND, Constant Field Values

NO_RESULTS_RETURNED

public static final int NO_RESULTS_RETURNED
Indicates that the LDAP server sent no results.

See Also:
com.novell.ldap.LDAPException.NO_RESULTS_RETURNED, Constant Field Values

MORE_RESULTS_TO_RETURN

public static final int MORE_RESULTS_TO_RETURN
Indicates that more results are chained in the result message.

See Also:
com.novell.ldap.LDAPException.MORE_RESULTS_TO_RETURN, Constant Field Values

CLIENT_LOOP

public static final int CLIENT_LOOP
Indicates the LDAP libraries detected a loop. Usually this happens when following referrals.

See Also:
com.novell.ldap.LDAPException.CLIENT_LOOP, Constant Field Values

REFERRAL_LIMIT_EXCEEDED

public static final int REFERRAL_LIMIT_EXCEEDED
Indicates that the referral exceeds the hop limit. The default hop limit is ten.

See Also:
com.novell.ldap.LDAPException.REFERRAL_LIMIT_EXCEEDED, Constant Field Values

INVALID_RESPONSE

public static final int INVALID_RESPONSE
Indicates that the server response to a request is invalid

See Also:
com.novell.ldap.LDAPException.INVALID_RESPONSE, Constant Field Values

AMBIGUOUS_RESPONSE

public static final int AMBIGUOUS_RESPONSE
Indicates that the server response to a request is ambiguous

See Also:
com.novell.ldap.LDAPException.AMBIGUOUS_RESPONSE, Constant Field Values

TLS_NOT_SUPPORTED

public static final int TLS_NOT_SUPPORTED
Indicates that TLS is not supported on the server.

See Also:
com.novell.ldap.LDAPException.TLS_NOT_SUPPORTED, Constant Field Values
Constructor Detail

LDAPException

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

See Also:
com.novell.ldap.LDAPException.LDAPException()

LDAPException

LDAPException(LDAPException ex)
Constructs an LDAPException class using com.novell.ldap.LDAPException


LDAPException

public LDAPException(java.lang.String message,
                     int resultCode,
                     java.lang.String serverMessage)
Constructs an exception with a detailed message String and the result code.

See Also:
com.novell.ldap.LDAPException.LDAPException(String, int, String)

LDAPException

public LDAPException(java.lang.String message,
                     int resultCode,
                     java.lang.String serverMessage,
                     java.lang.Throwable rootException)
Constructs an exception with a detailed message String, the result code, and the root exception.

See Also:
com.novell.ldap.LDAPException.LDAPException(String, int, String, Throwable)

LDAPException

public LDAPException(java.lang.String message,
                     int resultCode,
                     java.lang.String serverMessage,
                     java.lang.String matchedDN)
Constructs an exception with a detailed message String, result code, and a matchedDN returned from the server.

See Also:
com.novell.ldap.LDAPException.LDAPException(String, int, String, String)
Method Detail

getWrappedObject

LDAPException getWrappedObject()
gets the com.novell.ldap.LDAPException object


getCause

public java.lang.Throwable getCause()
Returns the lower level Exception which caused the failure, if any.

See Also:
com.novell.ldap.LDAPException.getCause()

getLDAPErrorMessage

public java.lang.String getLDAPErrorMessage()
Returns the error message from the LDAP server, if this message is available (that is, if this message was set).

See Also:
com.novell.ldap.LDAPException.getLDAPErrorMessage()

getResultCode

public int getResultCode()
Returns the result code from the exception.

See Also:
com.novell.ldap.LDAPException.getResultCode()

getMatchedDN

public java.lang.String getMatchedDN()
Returns the part of a submitted distinguished name which could be matched by the server.

See Also:
com.novell.ldap.LDAPException.getMatchedDN()

resultCodeToString

public java.lang.String resultCodeToString()
Returns a string representing the result code in the default locale.

See Also:
com.novell.ldap.LDAPException.resultCodeToString()

resultCodeToString

public static java.lang.String resultCodeToString(int code)
Returns a string representing the specified result code in the default locale.

See Also:
com.novell.ldap.LDAPException.resultCodeToString(int)

resultCodeToString

public java.lang.String resultCodeToString(java.util.Locale locale)
Returns a string representing the result code in the specified locale.

See Also:
com.novell.ldap.LDAPException.resultCodeToString(Locale)

resultCodeToString

public static java.lang.String resultCodeToString(int code,
                                                  java.util.Locale locale)
Returns a string representing the specified result code in the specified locale.

See Also:
com.novell.ldap.LDAPException.resultCodeToString(int, Locale)

toString

public java.lang.String toString()
Converts the integer error value to a string, in the default locale.

See Also:
com.novell.ldap.LDAPException.toString()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream stream)

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)

fillInStackTrace

public java.lang.Throwable fillInStackTrace()

getLocalizedMessage

public java.lang.String getLocalizedMessage()

getMessage

public java.lang.String getMessage()

All LDAP Classes
Internal LDAP Classes

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