Class LDAPSDKRuntimeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LDAPRuntimeException, LDAPSDKUsageException

This class serves as the base class for all custom runtime exception types defined in the LDAP SDK.
See Also:
  • Constructor Details

    • LDAPSDKRuntimeException

      Creates a new instance of this exception with the provided message.
      Parameters:
      message - The message to use for this exception.
    • LDAPSDKRuntimeException

      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 Details

    • toString

      @NotNull public final String toString()
      Retrieves a string representation of this exception.
      Overrides:
      toString in class Throwable
      Returns:
      A string representation of this exception.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      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

      @NotNull public String getExceptionMessage(boolean includeCause, boolean includeStackTrace)
      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.