public class UserNotFoundException extends ObjectNotFoundException
| Constructor and Description |
|---|
UserNotFoundException(String userName) |
UserNotFoundException(String userName,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
String |
getUserName()
Returns the name of the user that could not be found.
|
static UserNotFoundException |
throwNotFoundByAccountId(String accountId)
Static factory to throw a UserNotFoundException when searching by accountId rather than username.
|
static UserNotFoundException |
throwNotFoundByExternalId(String externalId)
Static factory to throw a UserNotFoundException when searching by externalId rather than username.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UserNotFoundException(String userName)
public String getUserName()
public static UserNotFoundException throwNotFoundByExternalId(String externalId) throws UserNotFoundException
externalId - the external IdUserNotFoundException - alwayspublic static UserNotFoundException throwNotFoundByAccountId(String accountId) throws UserNotFoundException
accountId - the Atlassian account IdentifierUserNotFoundException - alwaysCopyright © 2016 Atlassian. All Rights Reserved.