public class UserNotFoundException extends ObjectNotFoundException
| Constructor and Description |
|---|
UserNotFoundException(String userName) |
UserNotFoundException(String userName,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
static UserNotFoundException |
forExternalId(String externalId) |
String |
getUserName()
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UserNotFoundException(String userName)
public String getUserName()
public static void throwNotFoundByExternalId(String externalId) throws UserNotFoundException
externalId - the external IdUserNotFoundException - alwayspublic static UserNotFoundException forExternalId(String externalId)
Copyright © 2020 Atlassian. All rights reserved.