exception
Class UserAlreadyExistingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
exception.UserAlreadyExistingException
- All Implemented Interfaces:
- java.io.Serializable
public final class UserAlreadyExistingException
- extends java.lang.Exception
Exception thrown by UserDatabase.addUser()
when the
identifier of the user to be added is already in use by another user.
- Author:
- Karl-Peter Fuchs
- See Also:
userDatabase
,
Serialized Form
Field Summary |
private static long |
serialVersionUID
The serialVersionUID as identifier for this serializable class. |
Method Summary |
java.lang.String |
getMessage()
Returns the String "This user's identifier is already in use by
another user!" |
java.lang.String |
toString()
Returns the String "UserAlreadyExistingException". |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- The serialVersionUID as identifier for this serializable class.
- See Also:
- Constant Field Values
UserAlreadyExistingException
public UserAlreadyExistingException()
- Constructs an InvalidPortException (empty constructor).
getMessage
public java.lang.String getMessage()
- Returns the String "This user's identifier is already in use by
another user!"
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- "This user's identifier is already in use by another
user!".
toString
public java.lang.String toString()
- Returns the String "UserAlreadyExistingException".
- Overrides:
toString
in class java.lang.Throwable
- Returns:
- "UserAlreadyExistingException"