public final class NamingExceptionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<? extends NamingException> |
getNamingException(ResultCode code)
Returns the naming exception that maps to the supplied result code.
|
static ResultCode |
getResultCode(Class<? extends NamingException> clazz)
Returns the result code that map to the supplied naming exception.
|
static ResultCode |
getResultCode(String message)
Returns the result code contained in the supplied naming exception message.
|
static ResultCode[] |
getResultCodes(Class<? extends NamingException> clazz)
Returns the result codes that map to the supplied naming exception.
|
static boolean |
matches(Class<? extends NamingException> clazz,
ResultCode code)
Returns whether the supplied naming exception maps to the supplied result code.
|
public static ResultCode[] getResultCodes(Class<? extends NamingException> clazz)
clazz
- naming exceptionpublic static ResultCode getResultCode(Class<? extends NamingException> clazz)
clazz
- naming exceptionpublic static ResultCode getResultCode(String message)
message
- naming exception messagepublic static boolean matches(Class<? extends NamingException> clazz, ResultCode code)
clazz
- naming exceptioncode
- ldap result codepublic static Class<? extends NamingException> getNamingException(ResultCode code)
code
- ldap result codeCopyright © 2018. All rights reserved.