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
,ErrorCodeAware
,HttpStatusAware
public class LdaptiveException extends ServiceException implements HttpStatusAware, ErrorCodeAware
The ldaptive exception.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
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)
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 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, forbidden, forbidden, forbidden, forbiddenWithErrorCode, forbiddenWithErrorCode, forbiddenWithErrorCode, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bremersee.exception.ErrorCodeAware
getErrorCode
-
Methods inherited from interface org.bremersee.exception.HttpStatusAware
status
-
-
-
-
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 ServiceExceptionBuilder<LdaptiveException> builder()
Creates a new service exception builder.- Returns:
- the service exception builder
-
-