Package org.forgerock.opendj.rest2ldap
Class Utils
java.lang.Object
org.forgerock.opendj.rest2ldap.Utils
Internal utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BadRequestException
newBadRequestException
(LocalizableMessage message) Returns a newBadRequestException
with the given message.static BadRequestException
newBadRequestException
(LocalizableMessage message, Throwable cause) Returns a newBadRequestException
with the given message.
-
Method Details
-
newBadRequestException
Returns a newBadRequestException
with the given message.- Parameters:
message
- The message of theBadRequestException
.- Returns:
- the
BadRequestException
-
newBadRequestException
public static BadRequestException newBadRequestException(LocalizableMessage message, Throwable cause) Returns a newBadRequestException
with the given message.- Parameters:
message
- The message of theBadRequestException
.cause
- The cause of the exception.- Returns:
- the
BadRequestException
-