Class CannotBuyException

  • All Implemented Interfaces:
    Serializable

    public class CannotBuyException
    extends BusinessException
    Exception thrown when a product cannot be buy We could use a validation exception instead of this one but changing will affect what we already defined in REST.
    See Also:
    Serialized Form
    • Constructor Detail

      • CannotBuyException

        public CannotBuyException()
      • CannotBuyException

        public CannotBuyException​(String message,
                                  UserVO seller)
    • Method Detail

      • getSeller

        public UserVO getSeller()
      • setSeller

        public void setSeller​(UserVO seller)