Package com.unboundid.util
Class LDAPSDKException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.unboundid.util.LDAPSDKException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArgumentException,ASN1Exception,AuditLogException,CertException,ChangeLogEntryAttributeExceededMaxValuesException,EntrySourceException,JSONException,LDAPException,LDIFException,LogException,LogSyntaxException,TaskException
@NotExtensible
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public abstract class LDAPSDKException
extends Exception
This class serves as the base class for all custom checked exception types
defined in the LDAP SDK.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLDAPSDKException(String message) Creates a new instance of this exception with the provided message.protectedLDAPSDKException(String message, Throwable cause) Creates a new instance of this exception with the provided message and cause. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a string representation of this exception suitable for use in messages.getExceptionMessage(boolean includeCause, boolean includeStackTrace) Retrieves a string representation of this exception suitable for use in messages.final StringtoString()Retrieves a string representation of this exception.voidtoString(StringBuilder buffer) Appends a string representation of this exception to the provided buffer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
LDAPSDKException
Creates a new instance of this exception with the provided message.- Parameters:
message- The message to use for this exception.
-
LDAPSDKException
Creates a new instance of this exception with the provided message and cause.- Parameters:
message- The message to use for this exception.cause- The underlying cause for this exception. It may benullif no cause is available.
-
-
Method Details
-
toString
Retrieves a string representation of this exception. -
toString
Appends a string representation of this exception to the provided buffer.- Parameters:
buffer- The buffer to which the string representation of this exception is to be appended.
-
getExceptionMessage
Retrieves a string representation of this exception suitable for use in messages.- Returns:
- A string representation of this exception suitable for use in messages.
-
getExceptionMessage
Retrieves a string representation of this exception suitable for use in messages.- Parameters:
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.- Returns:
- A string representation of this exception suitable for use in messages.
-