@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDAPPersistException extends LDAPException
NO_CONTROLS, NO_REFERRALS
Constructor and Description |
---|
LDAPPersistException(LDAPException e)
Creates a new LDAP persist exception that wraps the provided LDAP
exception.
|
LDAPPersistException(java.lang.String message)
Creates a new LDAP persist exception with the provided message.
|
LDAPPersistException(java.lang.String message,
java.lang.Object partiallyDecodedObject,
java.lang.Throwable cause)
Creates a new LDAP persist exception with the provided message and cause.
|
LDAPPersistException(java.lang.String message,
java.lang.Throwable cause)
Creates a new LDAP persist exception with the provided message and cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getPartiallyDecodedObject()
Retrieves the partially-decoded object in the process of being initialized
when this exception was thrown.
|
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, toLDAPResult
toString
public LDAPPersistException(@NotNull LDAPException e)
e
- The LDAP exception to wrap with this LDAP persist exception.public LDAPPersistException(@NotNull java.lang.String message)
message
- The message for this exception.public LDAPPersistException(@NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
message
- The message for this exception.cause
- The underlying cause for this exception.public LDAPPersistException(@NotNull java.lang.String message, @Nullable java.lang.Object partiallyDecodedObject, @Nullable java.lang.Throwable cause)
message
- The message for this exception.partiallyDecodedObject
- The object that was in the process of being
decoded when this exception was thrown. It
may be null
if the exception was
thrown outside of the context of decoding
an object. If an object is available, then
it will likely be only partially
initialized.cause
- The underlying cause for this exception.@Nullable public java.lang.Object getPartiallyDecodedObject()
null
if none is
available or the exception was not thrown while decoding an
object.public void toString(@NotNull 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(@NotNull 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.