From bbf0c5d5d6abd1044f692a456c3cdff220ee4d57 Mon Sep 17 00:00:00 2001 From: Desislava Asenova <9128192+desislavaa@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:54:20 +0300 Subject: [PATCH] Update README.md --- 03-oop-in-java-ii/lab/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/03-oop-in-java-ii/lab/README.md b/03-oop-in-java-ii/lab/README.md index 1360f8a2..353ebbc0 100644 --- a/03-oop-in-java-ii/lab/README.md +++ b/03-oop-in-java-ii/lab/README.md @@ -47,7 +47,9 @@ public class RentalService { * additional tax for the driver, if it is applicable * @param vehicle the rented vehicle * @param endOfRent the end time of the rental - * @return + * @return price for the rental + * @throws IllegalArgumentException in case @endOfRent or @vehicle is null + * @throws VehicleNotRentedException in case the vehicle is not rented at all * @throws InvalidRentingPeriodException in case the endOfRent is before the start of rental, or the vehicle * does not allow the passed period for rental, e.g. Caravans must be rented for at least a day. */