com.jivesoftware.base
Class UserNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jivesoftware.base.JiveException
com.jivesoftware.base.UserNotFoundException
- All Implemented Interfaces:
- java.io.Serializable
public class UserNotFoundException
- extends com.jivesoftware.base.JiveException
Thrown when User cannot be found.
- See Also:
- Serialized Form
Method Summary |
long |
getUserID()
Returns id of the user not found if available, else -1. |
java.lang.String |
getUsername()
Returns username of the user not found if available, else null. |
void |
setUserID(long userID)
|
void |
setUsername(java.lang.String username)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UserNotFoundException
public UserNotFoundException()
UserNotFoundException
public UserNotFoundException(long userID)
- Allows you to create an exception specifying the id of the user that was not found
- Parameters:
userID
- id of the user that was not found
UserNotFoundException
public UserNotFoundException(java.lang.String msg)
UserNotFoundException
public UserNotFoundException(java.lang.String msg,
java.lang.Throwable throwable)
UserNotFoundException
public UserNotFoundException(java.lang.Throwable throwable)
setUserID
public void setUserID(long userID)
setUsername
public void setUsername(java.lang.String username)
getUserID
public long getUserID()
- Returns id of the user not found if available, else -1.
- Returns:
- id of the user not found if available, else -1.
getUsername
public java.lang.String getUsername()
- Returns username of the user not found if available, else null.
- Returns:
- username of the user not found if available, else null.
Copyright © 1999-2006 Jive Software.