Package com.unboundid.util
Class LDAPSDKUsageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.unboundid.util.LDAPSDKRuntimeException
com.unboundid.util.LDAPSDKUsageException
- All Implemented Interfaces:
Serializable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class LDAPSDKUsageException
extends LDAPSDKRuntimeException
This class provides a runtime exception that may be thrown by the LDAP SDK
if it detects a problem with the usage of the SDK itself (e.g., a
null value provided for an argument that must not be null, or
an argument value that violates a documented constraint).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLDAPSDKUsageException(String message) Creates a new instance of this exception with the provided message.LDAPSDKUsageException(String message, Throwable cause) Creates a new instance of this exception with the provided message and cause. -
Method Summary
Modifier and TypeMethodDescriptionvoidtoString(StringBuilder buffer) Appends a string representation of this exception to the provided buffer.Methods inherited from class com.unboundid.util.LDAPSDKRuntimeException
getExceptionMessage, getExceptionMessage, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
LDAPSDKUsageException
Creates a new instance of this exception with the provided message.- Parameters:
message- The message to use for this exception.
-
LDAPSDKUsageException
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
Appends a string representation of this exception to the provided buffer.- Overrides:
toStringin classLDAPSDKRuntimeException- Parameters:
buffer- The buffer to which the string representation of this exception is to be appended.
-