Package com.goldenleaf.shop.exception


package com.goldenleaf.shop.exception
  • Exception Classes
    Class
    Description
    Checked exception thrown when an attempt is made to create or process a review without a valid author (customer).
    Checked exception thrown when an attempt is made to create or update a product without specifying a valid brand.
    Checked exception thrown when an attempt is made to create or update a credit card without providing a valid card number.
    Checked exception thrown when an attempt is made to create or save a review (or any other user-generated textual content) with an empty or missing text body.
    Checked exception thrown when an attempt is made to process or temporarily store a credit-card CVV (Card Verification Value) that is null, empty, or consists only of whitespace.
    Checked exception thrown when an attempt is made to create or update a credit card without providing a valid expiry date (month/year).
    Checked exception thrown when an attempt is made to create or persist a user (customer, admin, etc.) without specifying the date of the last activity.
    Checked exception thrown when an attempt is made to create, update, or authenticate a user with a null, empty, or whitespace-only login.
    Checked exception thrown when an attempt is made to create or update an entity that requires a non-empty name (full name, category name, product name, etc.)
    Checked exception thrown when an attempt is made to perform an operation that requires a valid Product instance, but the provided product is null.
    Checked exception thrown when an attempt is made to perform an operation that requires a valid, non-null ShoppingCart instance, but the provided shopping cart is null.
    Checked exception thrown when an attempt is made to set or add an invalid number of bonus points for a Customer.
    Checked exception thrown when an attempt is made to set or update a customer's email address with an invalid, malformed, or otherwise unacceptable value.
    Checked exception thrown when an attempt is made to set or update a customer's mobile phone number with an invalid, malformed, or otherwise unacceptable value.
    Checked exception thrown when an attempt is made to set or update a product price (or any monetary amount) with an invalid or unacceptable value.
    Checked exception thrown when an attempt is made to set or update a quantity (e.g., product stock, items in cart, order line quantity) with an invalid or unacceptable value.
    Checked exception thrown when an attempt is made to create or save a product review with a rating that falls outside the allowed range (typically 1–5 stars).
    Checked exception thrown when an operation requires a valid, non-null Customer instance, but null is provided or the customer reference is missing.
    Checked exception thrown when an operation requires a valid, non-null payment method (typically a CreditCard or other payment entity), but null is supplied or the payment reference is missing.