com.unboundid.util
Class LDAPSDKUsageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.unboundid.util.LDAPSDKRuntimeException
                  extended by com.unboundid.util.LDAPSDKUsageException
All Implemented Interfaces:
java.io.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:
Serialized Form

Constructor Summary
LDAPSDKUsageException(java.lang.String message)
          Creates a new instance of this exception with the provided message.
LDAPSDKUsageException(java.lang.String message, java.lang.Throwable cause)
          Creates a new instance of this exception with the provided message and cause.
 
Method Summary
 void toString(java.lang.StringBuilder buffer)
          Appends a string representation of this exception to the provided buffer.
 
Methods inherited from class com.unboundid.util.LDAPSDKRuntimeException
getExceptionMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPSDKUsageException

public LDAPSDKUsageException(java.lang.String message)
Creates a new instance of this exception with the provided message.

Parameters:
message - The message to use for this exception.

LDAPSDKUsageException

public LDAPSDKUsageException(java.lang.String message,
                             java.lang.Throwable cause)
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 be null if no cause is available.
Method Detail

toString

public void toString(java.lang.StringBuilder buffer)
Appends a string representation of this exception to the provided buffer.

Overrides:
toString in class LDAPSDKRuntimeException
Parameters:
buffer - The buffer to which the string representation of this exception is to be appended.