@NotExtensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPExtendedOperationException extends LDAPException
NO_CONTROLS, NO_REFERRALS
Constructor and Description |
---|
LDAPExtendedOperationException(ExtendedResult extendedResult)
Creates a new LDAP extended operation exception from the provided extended
result.
|
Modifier and Type | Method and Description |
---|---|
ExtendedResult |
getExtendedResult()
Retrieves the extended result that was returned by the server.
|
java.lang.String |
getResponseOID()
Retrieves the response OID from the extended result, if any.
|
ASN1OctetString |
getResponseValue()
Retrieves the response value from the extended result, if any.
|
LDAPResult |
toLDAPResult()
Creates a new
LDAPResult object from this exception. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this exception to the provided buffer.
|
void |
toString(java.lang.StringBuilder buffer,
boolean includeCause,
boolean includeStackTrace)
Appends a string representation of this
LDAPException to the
provided buffer. |
getDiagnosticMessage, getExceptionMessage, getExceptionMessage, getMatchedDN, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl
toString
public LDAPExtendedOperationException(ExtendedResult extendedResult)
extendedResult
- The extended result to use to create this
exception.public LDAPResult toLDAPResult()
LDAPResult
object from this exception.toLDAPResult
in class LDAPException
LDAPResult
object created from this exception.public ExtendedResult getExtendedResult()
public java.lang.String getResponseOID()
null
if the
result did not include an OID.public ASN1OctetString getResponseValue()
null
if
the result did not include a value.public void toString(java.lang.StringBuilder buffer)
toString
in class LDAPException
buffer
- The buffer to which the string representation of this
exception is to be appended.public void toString(java.lang.StringBuilder buffer, boolean includeCause, boolean includeStackTrace)
LDAPException
to the
provided buffer.toString
in class LDAPException
buffer
- The buffer to which the information should be
appended. This must not be null
.includeCause
- Indicates whether to include information about
the cause (if any) in the exception message.includeStackTrace
- Indicates whether to include a condensed
representation of the stack trace in the
exception message. If a stack trace is
included, then the cause (if any) will
automatically be included, regardless of the
value of the includeCause
argument.