Class UserAlreadyShareBagException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UserAlreadyShareBagException
    extends java.lang.RuntimeException
    Exception thrown when a user already shares the bag.
    Author:
    Daniela Butano
    See Also:
    Serialized Form
    • Method Summary

      • 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

      • UserAlreadyShareBagException

        public UserAlreadyShareBagException()
        Constructor
      • UserAlreadyShareBagException

        public UserAlreadyShareBagException​(java.lang.String msg)
        Constructor with message.
        Parameters:
        msg - message
      • UserAlreadyShareBagException

        public UserAlreadyShareBagException​(java.lang.Throwable t)
        Constructor with throwable
        Parameters:
        t - another throwable
      • UserAlreadyShareBagException

        public UserAlreadyShareBagException​(java.lang.String msg,
                                            java.lang.Throwable t)
        Constructor with message and throwable
        Parameters:
        msg - message
        t - another throwable
      • UserAlreadyShareBagException

        public UserAlreadyShareBagException​(SavedBag bag,
                                            UserProfile up)
        Constructor with the actual objects we are trying to link.
        Parameters:
        bag - The SavedBag we are trying to share
        up - The UserProfile we are trying to share this with.