Class 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:
    Serialized Form
    • Constructor Detail

      • LdaptiveException

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

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

        protected LdaptiveException​(int httpStatus,
                                    String errorCode,
                                    Throwable cause)
        Instantiates a new ldaptive exception.
        Parameters:
        httpStatus - the http status
        errorCode - the error code
        cause - the cause
      • 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 Detail

      • 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