Class LDAPExtendedOperationException

    • Constructor Detail

      • LDAPExtendedOperationException

        public LDAPExtendedOperationException​(@NotNull
                                              ExtendedResult extendedResult)
        Creates a new LDAP extended operation exception from the provided extended result.
        Parameters:
        extendedResult - The extended result to use to create this exception.
    • Method Detail

      • getExtendedResult

        @NotNull
        public ExtendedResult getExtendedResult()
        Retrieves the extended result that was returned by the server.
        Returns:
        The extended result that was returned by the server.
      • getResponseOID

        @Nullable
        public java.lang.String getResponseOID()
        Retrieves the response OID from the extended result, if any.
        Returns:
        The response OID from the extended result, or null if the result did not include an OID.
      • getResponseValue

        @Nullable
        public ASN1OctetString getResponseValue()
        Retrieves the response value from the extended result, if any.
        Returns:
        The response value from the extended result, or null if the result did not include a value.
      • toString

        public void toString​(@NotNull
                             java.lang.StringBuilder buffer)
        Appends a string representation of this exception to the provided buffer.
        Overrides:
        toString in class LDAPException
        Parameters:
        buffer - The buffer to which the string representation of this exception is to be appended.
      • toString

        public void toString​(@NotNull
                             java.lang.StringBuilder buffer,
                             boolean includeCause,
                             boolean includeStackTrace)
        Appends a string representation of this LDAPException to the provided buffer.
        Overrides:
        toString in class LDAPException
        Parameters:
        buffer - The buffer to which the information should be appended. This must not be null.
        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. If a stack trace is included, then the cause (if any) will automatically be included, regardless of the value of the includeCause argument.