Package com.atlassian.crowd.exception
Class UserNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.crowd.exception.CrowdException
com.atlassian.crowd.exception.ObjectNotFoundException
com.atlassian.crowd.exception.UserNotFoundException
- All Implemented Interfaces:
Serializable
Thrown when the specified user could not be found.
- See Also:
-
Constructor Summary
ConstructorDescriptionUserNotFoundException
(String userName) UserNotFoundException
(String userName, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptionstatic UserNotFoundException
forExternalId
(String externalId) Returns the name of the user that could not be found.static void
throwNotFoundByExternalId
(String externalId) Static factory to throw a UserNotFoundException when searching by externalId rather than username.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UserNotFoundException
-
UserNotFoundException
-
-
Method Details
-
getUserName
Returns the name of the user that could not be found.- Returns:
- name of the user that could not be found
-
throwNotFoundByExternalId
Static factory to throw a UserNotFoundException when searching by externalId rather than username.- Parameters:
externalId
- the external Id- Throws:
UserNotFoundException
- always
-
forExternalId
-