Class UserNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UserNotFoundException
    extends java.lang.RuntimeException
    Thrown if user does not exist anymore
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getUserId()
      Returns id of a non existent user
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UserNotFoundException

        public UserNotFoundException​(long userId)
        Constructor
        Parameters:
        userId - id of a non existent user
      • UserNotFoundException

        public UserNotFoundException​(long userId,
                                     java.lang.String message)
        Constructor
        Parameters:
        userId - id of a non existent user
        message - message
    • Method Detail

      • getUserId

        public long getUserId()
        Returns id of a non existent user
        Returns:
        id of a non existent user