public class LDAPConnectionException extends java.lang.Exception
Modifier and Type | Class and Description |
---|---|
static class |
LDAPConnectionException.CauseType
Enumeration of LDAP connection exception cause types.
|
Constructor and Description |
---|
LDAPConnectionException(java.lang.String message)
Creates a new LDAP connection exception, with no specific cause
type.
|
LDAPConnectionException(java.lang.String message,
LDAPConnectionException.CauseType causeType)
Creates a new LDAP connection exception.
|
LDAPConnectionException(java.lang.String message,
LDAPConnectionException.CauseType causeType,
java.lang.Throwable cause)
Creates a new LDAP connection exception.
|
Modifier and Type | Method and 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.
|
public LDAPConnectionException(java.lang.String message)
message
- The exception message. Should not be null
.public LDAPConnectionException(java.lang.String message, LDAPConnectionException.CauseType causeType)
message
- The exception message. Should not be null
.causeType
- The cause type, null
if not specified.public LDAPConnectionException(java.lang.String message, LDAPConnectionException.CauseType causeType, java.lang.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 © 2016 Connect2id. All Rights Reserved.