Serializable
public class LDAPConnectionException extends Exception
Modifier and Type | Class | Description |
---|---|---|
static class |
LDAPConnectionException.CauseType |
Enumeration of LDAP connection exception cause types.
|
Constructor | Description |
---|---|
LDAPConnectionException(String message) |
Creates a new LDAP connection exception, with no specific cause
type.
|
LDAPConnectionException(String message,
LDAPConnectionException.CauseType causeType) |
Creates a new LDAP connection exception.
|
LDAPConnectionException(String message,
LDAPConnectionException.CauseType causeType,
Throwable cause) |
Creates a new LDAP connection exception.
|
Modifier and Type | Method | Description |
---|---|---|
LDAPConnectionException.CauseType |
getCauseType() |
Gets the cause type.
|
static LDAPConnectionException |
parse(com.unboundid.ldap.sdk.LDAPException e) |
Creates a new LDAP connection exception from the specified LDAP SDK
exception.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LDAPConnectionException(String message)
message
- The exception message. Should not be null
.public LDAPConnectionException(String message, LDAPConnectionException.CauseType causeType)
message
- The exception message. Should not be null
.causeType
- The cause type, null
if not specified.public LDAPConnectionException(String message, LDAPConnectionException.CauseType causeType, Throwable cause)
message
- The exception message. Should not be null
.causeType
- The cause type, null
if not specified.cause
- The exception cause, null
if not specified.public static LDAPConnectionException parse(com.unboundid.ldap.sdk.LDAPException e)
This method contains special logic to compensate for a "bug" in the Unboundid LDAP SDK (found in 1.1.3) where network errors are poorly reported: instead of throwing a java.net.* exception, the SDK produces a general IOException where you need to scan its message text to find out the exact network cause (see unbounded.ldap.sdk.LDAPConnectionInternals() #line 142).
e
- The LDAP SDK exception. Must not be null
.public LDAPConnectionException.CauseType getCauseType()
Copyright © 2018 Connect2id. All rights reserved.