exception
Class UserAlreadyExistingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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.
 
Constructor Summary
UserAlreadyExistingException()
          Constructs an InvalidPortException (empty constructor).
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID as identifier for this serializable class.

See Also:
Constant Field Values
Constructor Detail

UserAlreadyExistingException

public UserAlreadyExistingException()
Constructs an InvalidPortException (empty constructor).

Method Detail

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"