Package org.bremersee.data.ldaptive
Class LdaptiveException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.bremersee.exception.ServiceException
-
- org.bremersee.data.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:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LdaptiveException(int httpStatus, String errorCode)
Instantiates a new ldaptive exception.protected
LdaptiveException(int httpStatus, String errorCode, String reason)
Instantiates a new ldaptive exception.protected
LdaptiveException(int httpStatus, String errorCode, String reason, Throwable cause)
Instantiates a new ldaptive exception.protected
LdaptiveException(int httpStatus, String errorCode, Throwable cause)
Instantiates a new ldaptive exception.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.bremersee.exception.ServiceExceptionBuilder<LdaptiveException>
builder()
Creates a new service exception builder.org.ldaptive.LdapException
getLdapException()
Gets ldap exception (can benull
).org.ldaptive.ResultCode
getResultCode()
Gets result code (can benull
).-
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.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LdaptiveException
protected LdaptiveException(int httpStatus, String errorCode)
Instantiates a new ldaptive exception.- Parameters:
httpStatus
- the http statuserrorCode
- the error code
-
LdaptiveException
protected LdaptiveException(int httpStatus, String errorCode, String reason)
Instantiates a new ldaptive exception.- Parameters:
httpStatus
- the http statuserrorCode
- the error codereason
- the reason
-
LdaptiveException
protected LdaptiveException(int httpStatus, String errorCode, Throwable cause)
Instantiates a new ldaptive exception.- Parameters:
httpStatus
- the http statuserrorCode
- the error codecause
- the cause
-
-
Method Detail
-
getLdapException
public org.ldaptive.LdapException getLdapException()
Gets ldap exception (can benull
).- Returns:
- the ldap exception
-
getResultCode
public org.ldaptive.ResultCode getResultCode()
Gets result code (can benull
).- Returns:
- the result code
-
builder
public static org.bremersee.exception.ServiceExceptionBuilder<LdaptiveException> builder()
Creates a new service exception builder.- Returns:
- the service exception builder
-
-