Package com.unboundid.ldap.sdk
Class EntrySourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.unboundid.util.LDAPSDKException
com.unboundid.ldap.sdk.EntrySourceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SearchResultReferenceEntrySourceException
@NotExtensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class EntrySourceException
extends LDAPSDKException
This class defines an exception that may be thrown if a problem occurs while
trying to access an entry in an entry source (e.g., because the entry source
is no longer available, because an entry could not be parsed, or because the
next element returned was a search result reference rather than a search
result entry).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntrySourceException(boolean mayContinueReading, String message, Throwable cause) Creates a new entry source exception with the provided information.EntrySourceException(boolean mayContinueReading, Throwable cause) Creates a new entry source exception with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether it is possible to continue attempting to iterate through subsequent entries in the entry source.voidtoString(StringBuilder buffer) Appends a string representation of this exception to the provided buffer.Methods inherited from class com.unboundid.util.LDAPSDKException
getExceptionMessage, getExceptionMessage, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
EntrySourceException
Creates a new entry source exception with the provided information.- Parameters:
mayContinueReading- Indicates whether it is possible to continue attempting to iterate through subsequent entries in the entry source.cause- The underlying exception that triggered this exception. It must not benull.
-
EntrySourceException
public EntrySourceException(boolean mayContinueReading, @NotNull String message, @Nullable Throwable cause) Creates a new entry source exception with the provided information.- Parameters:
mayContinueReading- Indicates whether it is possible to continue attempting to iterate through subsequent entries in the entry source.message- A message explaining the problem that occurred. It must not benull.cause- The underlying exception that triggered this exception. It must not benull.
-
-
Method Details
-
mayContinueReading
Indicates whether it is possible to continue attempting to iterate through subsequent entries in the entry source.- Returns:
trueif it is possible to continue attempting to read from the entry source, orfalseif it is not possible to continue.
-
toString
Appends a string representation of this exception to the provided buffer.- Overrides:
toStringin classLDAPSDKException- Parameters:
buffer- The buffer to which the string representation of this exception is to be appended.
-