public class LDAPServiceException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_OP_NOT_SUPPORTED
CACHE_OP_NOT_PERMITTED(18) If the particular server does not support
entry change notifications, the setupCache will return this exception.
|
static int |
FILE_NOT_FOUND
FILE_NOT_FOUND(19) This exception is thrown if ADAL tries to open a file
and get a java.io.FileNotFoundException
|
static int |
FILTER_IS_REQD
FILTER_IS_REQUIRED(11) For a search operation, filter is required.
|
static int |
INCOMPATIBLE_DB_TYPE
INCOMPATIBLE_DB_TYPE(17) E.g.
|
static int |
INCORRECT_CP_PARAMS
INCORRECT_CP_PARAMS(8) One or more connection pool parameters incorrect.
|
static int |
INCORRECT_LDAP_PARAMS
INCORRECT_LDAP_PARAMS(7) If the server_type is given as LDAP, then one or
more of the ldap parameters are not correct.
|
static int |
INCORRECT_LDAP_REBIND_PARAMS
INCORRECT_LDAP_REBIND_PARAMS(9) The rebind parameters specified are not
correct.
|
static int |
INCORRECT_SERVER_PARAMS
INCORRECT_SERVER_PARAMS(6) Incorrect server parameters passed in the
configuration file.
|
static int |
INVALID_ENTRY_ID
INVALID_ENTRY_ID(16) Typically, if an invalid ID is passed to Entry's
constructor, this error is thrown.
|
static int |
INVALID_OPERATION
INVALID_OPERATION(5) Reported an invalid operation.
|
static int |
INVALID_SEARCH_CONSTRAINTS
INVALID_SEARCH_CONSTRAINTS(12) If the constraints specified are not
comprehendable, then this error is returned.
|
static int |
MUST_HAVE_SERVICE_NAME
MUST_HAVE_SERVICE_NAME(10) Simple, the any ips_core:service specified in
the xml must have a name.
|
static int |
NO_COMMON_SERVICE_SPECIFIED
NO_DEFAULT_SERVICE_SPECIFIED(14) It could happen if you call
DataAccessProvider.getConnection() and there was no "common" service
defined in the serverconfig.xml.
|
static int |
SERVER_DOWN
SERVER_DOWN(4) Indicates that the server was reported down.
|
static int |
SERVER_NOT_PRESENT
SERVER_NOT_PRESENT(15) If you call getConnection, with or without the
service name and there is no Server specified for that service, this
exception gets thrown.
|
static int |
SERVICE_NOT_PRESENT
SERVICE_NOT_FOUND(13) When called
DataAccessProvider.getConnection(String), it tries to look for the type
of service it is given to provide.
|
static int |
UNKNOWN_ERROR
UNKNOWN_ERROR(20) This error is thrown when ADAL does not know what on
earth happened. e.g.
|
Constructor and Description |
---|
LDAPServiceException(int code)
Constructor
|
LDAPServiceException(int code,
String errormsg)
The constructor.
|
LDAPServiceException(int code,
Throwable t) |
LDAPServiceException(String errormsg)
The constructor.
|
LDAPServiceException(String errormsg,
Throwable t)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int SERVER_DOWN
public static final int INVALID_OPERATION
public static final int INCORRECT_SERVER_PARAMS
public static final int INCORRECT_LDAP_PARAMS
public static final int INCORRECT_CP_PARAMS
public static final int INCORRECT_LDAP_REBIND_PARAMS
public static final int MUST_HAVE_SERVICE_NAME
public static final int FILTER_IS_REQD
public static final int INVALID_SEARCH_CONSTRAINTS
public static final int SERVICE_NOT_PRESENT
public static final int NO_COMMON_SERVICE_SPECIFIED
public static final int SERVER_NOT_PRESENT
public static final int INVALID_ENTRY_ID
public static final int INCOMPATIBLE_DB_TYPE
public static final int CACHE_OP_NOT_SUPPORTED
public static final int FILE_NOT_FOUND
public static final int UNKNOWN_ERROR
public LDAPServiceException(int code)
code
- The error code that represents the error that occurred while
performing an operation.public LDAPServiceException(int code, String errormsg)
code
- The error code that represents the error that occurred while
performing an operation.errormsg
- A string description of the error that occurred.public LDAPServiceException(String errormsg)
errormsg
- A string description of the error that occurred.public LDAPServiceException(int code, Throwable t)
code
- The type of error that occurredt
- The original exception that triggered the errorpublic String getMessage()
getMessage
in class Throwable
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.