public class LdapException extends Exception implements ResponseMessage
Throwable.getCause()
.Modifier and Type | Field and Description |
---|---|
private String |
matchedDn
response matched DN.
|
private int |
messageId
Message ID.
|
private String[] |
referralURLs
referral URLs.
|
private ResponseControl[] |
responseControls
response controls.
|
private ResultCode |
resultCode
ldap result code.
|
private static long |
serialVersionUID
serialVersionUID.
|
Constructor and Description |
---|
LdapException(Exception e)
Creates a new ldap exception.
|
LdapException(Exception e,
ResultCode code)
Creates a new ldap exception.
|
LdapException(Exception e,
ResultCode code,
String dn)
Creates a new ldap exception.
|
LdapException(Exception e,
ResultCode code,
String dn,
ResponseControl[] c)
Creates a new ldap exception.
|
LdapException(Exception e,
ResultCode code,
String dn,
ResponseControl[] c,
String[] urls)
Creates a new ldap exception.
|
LdapException(Exception e,
ResultCode code,
String dn,
ResponseControl[] c,
String[] urls,
int id)
Creates a new ldap exception.
|
LdapException(String msg)
Creates a new ldap exception.
|
LdapException(String msg,
Exception e)
Creates a new ldap exception.
|
LdapException(String msg,
Exception e,
ResultCode code)
Creates a new ldap exception.
|
LdapException(String msg,
Exception e,
ResultCode code,
String dn)
Creates a new ldap exception.
|
LdapException(String msg,
Exception e,
ResultCode code,
String dn,
ResponseControl[] c)
Creates a new ldap exception.
|
LdapException(String msg,
Exception e,
ResultCode code,
String dn,
ResponseControl[] c,
String[] urls)
Creates a new ldap exception.
|
LdapException(String msg,
Exception e,
ResultCode code,
String dn,
ResponseControl[] c,
String[] urls,
int id)
Creates a new ldap exception.
|
LdapException(String msg,
ResultCode code)
Creates a new ldap exception.
|
LdapException(String msg,
ResultCode code,
String dn)
Creates a new ldap exception.
|
LdapException(String msg,
ResultCode code,
String dn,
ResponseControl[] c)
Creates a new ldap exception.
|
LdapException(String msg,
ResultCode code,
String dn,
ResponseControl[] c,
String[] urls)
Creates a new ldap exception.
|
LdapException(String msg,
ResultCode code,
String dn,
ResponseControl[] c,
String[] urls,
int id)
Creates a new ldap exception.
|
Modifier and Type | Method and Description |
---|---|
ResponseControl |
getControl(String oid)
Returns the first response control with the supplied OID for this response message.
|
ResponseControl[] |
getControls()
Returns the controls for this message.
|
String |
getMatchedDn()
Returns the matched DN produced by the ldap operation.
|
int |
getMessageId()
Returns the message ID for this response message.
|
String[] |
getReferralURLs()
Returns the referral URLs produced by the ldap operation.
|
ResultCode |
getResultCode()
Returns the ldap result code associated with this exception.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
private static final long serialVersionUID
private final ResultCode resultCode
private final String matchedDn
private final ResponseControl[] responseControls
private final String[] referralURLs
private final int messageId
public LdapException(String msg)
msg
- describing this exceptionpublic LdapException(String msg, ResultCode code)
msg
- describing this exceptioncode
- result codepublic LdapException(String msg, ResultCode code, String dn)
msg
- describing this exceptioncode
- result codedn
- matched dnpublic LdapException(String msg, ResultCode code, String dn, ResponseControl[] c)
msg
- describing this exceptioncode
- result codedn
- matched dnc
- response controlspublic LdapException(String msg, ResultCode code, String dn, ResponseControl[] c, String[] urls)
msg
- describing this exceptioncode
- result codedn
- matched dnc
- response controlsurls
- referral urlspublic LdapException(String msg, ResultCode code, String dn, ResponseControl[] c, String[] urls, int id)
msg
- describing this exceptioncode
- result codedn
- matched dnc
- response controlsurls
- referral urlsid
- message idpublic LdapException(Exception e)
e
- provider specific exceptionpublic LdapException(Exception e, ResultCode code)
e
- provider specific exceptioncode
- result codepublic LdapException(Exception e, ResultCode code, String dn)
e
- provider specific exceptioncode
- result codedn
- matched dnpublic LdapException(Exception e, ResultCode code, String dn, ResponseControl[] c)
e
- provider specific exceptioncode
- result codedn
- matched dnc
- response controlspublic LdapException(Exception e, ResultCode code, String dn, ResponseControl[] c, String[] urls)
e
- provider specific exceptioncode
- result codedn
- matched dnc
- response controlsurls
- referral urlspublic LdapException(Exception e, ResultCode code, String dn, ResponseControl[] c, String[] urls, int id)
e
- provider specific exceptioncode
- result codedn
- matched dnc
- response controlsurls
- referral urlsid
- message idpublic LdapException(String msg, Exception e)
msg
- describing this exceptione
- provider specific exceptionpublic LdapException(String msg, Exception e, ResultCode code)
msg
- describing this exceptione
- provider specific exceptioncode
- result codepublic LdapException(String msg, Exception e, ResultCode code, String dn)
msg
- describing this exceptione
- provider specific exceptioncode
- result codedn
- matched dnpublic LdapException(String msg, Exception e, ResultCode code, String dn, ResponseControl[] c)
msg
- describing this exceptione
- provider specific exceptioncode
- result codedn
- matched dnc
- response controlspublic LdapException(String msg, Exception e, ResultCode code, String dn, ResponseControl[] c, String[] urls)
msg
- describing this exceptione
- provider specific exceptioncode
- result codedn
- matched dnc
- response controlsurls
- referral urlspublic LdapException(String msg, Exception e, ResultCode code, String dn, ResponseControl[] c, String[] urls, int id)
msg
- describing this exceptione
- provider specific exceptioncode
- result codedn
- matched dnc
- response controlsurls
- referral urlsid
- message idpublic ResultCode getResultCode()
public String getMatchedDn()
public ResponseControl[] getControls()
Message
getControls
in interface Message<ResponseControl>
public ResponseControl getControl(String oid)
ResponseMessage
getControl
in interface ResponseMessage
oid
- of the response control to returnpublic String[] getReferralURLs()
public int getMessageId()
ResponseMessage
getMessageId
in interface ResponseMessage
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.