Class LdaptiveException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bremersee.exception.ServiceException
org.bremersee.ldaptive.LdaptiveException
All Implemented Interfaces:
Serializable, org.bremersee.exception.ErrorCodeAware, org.bremersee.exception.HttpStatusAware

public class LdaptiveException extends org.bremersee.exception.ServiceException implements org.bremersee.exception.HttpStatusAware, org.bremersee.exception.ErrorCodeAware
The ldaptive exception.
Author:
Christian Bremer
See Also:
  • Field Summary

    Fields inherited from class org.bremersee.exception.ServiceException

    ERROR_CODE_ALREADY_EXISTS

    Fields inherited from interface org.bremersee.exception.ErrorCodeAware

    NO_ERROR_CODE_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LdaptiveException(int httpStatus, String errorCode, String reason, Throwable cause)
    Instantiates a new ldaptive exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bremersee.exception.ServiceExceptionBuilder<LdaptiveException>
    Creates a new service exception builder.
    org.ldaptive.LdapException
    Gets ldap exception (can be null).
    org.ldaptive.ResultCode
    Gets result code (can be null).

    Methods inherited from class org.bremersee.exception.ServiceException

    alreadyExists, alreadyExists, alreadyExists, alreadyExistsWithErrorCode, alreadyExistsWithErrorCode, badRequest, badRequest, badRequest, badRequest, badRequest, canEqual, equals, forbidden, forbidden, forbidden, forbiddenWithErrorCode, forbiddenWithErrorCode, forbiddenWithErrorCode, getErrorCode, hashCode, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, notFound, notFound, notFound, notFoundWithErrorCode, notFoundWithErrorCode, status

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bremersee.exception.ErrorCodeAware

    getErrorCode

    Methods inherited from interface org.bremersee.exception.HttpStatusAware

    status
  • Constructor Details

    • LdaptiveException

      protected LdaptiveException(int httpStatus, String errorCode, String reason, Throwable cause)
      Instantiates a new ldaptive exception.
      Parameters:
      httpStatus - the http status
      errorCode - the error code
      reason - the reason
      cause - the cause
  • Method Details

    • getLdapException

      public org.ldaptive.LdapException getLdapException()
      Gets ldap exception (can be null).
      Returns:
      the ldap exception
    • getResultCode

      public org.ldaptive.ResultCode getResultCode()
      Gets result code (can be null).
      Returns:
      the result code
    • builder

      public static org.bremersee.exception.ServiceExceptionBuilder<LdaptiveException> builder()
      Creates a new service exception builder.
      Returns:
      the service exception builder