From 2750dbcf5c3392440af1566a03a86fa950b7a22a Mon Sep 17 00:00:00 2001 From: kimhyun5u <22kimhyun5u@gmail.com> Date: Sun, 11 Aug 2024 20:20:58 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20=EC=98=A4=EB=A5=98=20=EB=A9=94?= =?UTF-8?q?=EC=84=B8=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../woowak/lab/customer/domain/Customer.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/camp/woowak/lab/customer/domain/Customer.java b/src/main/java/camp/woowak/lab/customer/domain/Customer.java index 13fda5f6..db1fefb5 100644 --- a/src/main/java/camp/woowak/lab/customer/domain/Customer.java +++ b/src/main/java/camp/woowak/lab/customer/domain/Customer.java @@ -55,37 +55,37 @@ private void checkPayAccount(PayAccount payAccount) throws InvalidCreationExcept private void checkPhone(String phone) throws InvalidCreationException { if (phone == null || phone.isBlank()) { - throw new InvalidCreationException("Vendor phone cannot be blank"); + throw new InvalidCreationException("Customer phone cannot be blank"); } if (phone.trim().length() > 30) { - throw new InvalidCreationException("Vendor phone cannot be longer than 30 characters"); + throw new InvalidCreationException("Customer phone cannot be longer than 30 characters"); } } private void checkPassword(String password) throws InvalidCreationException { if (password == null || password.isBlank()) { - throw new InvalidCreationException("Vendor password cannot be blank"); + throw new InvalidCreationException("Customer password cannot be blank"); } if (password.trim().length() > 30) { - throw new InvalidCreationException("Vendor password cannot be longer than 30 characters"); + throw new InvalidCreationException("Customer password cannot be longer than 30 characters"); } } private void checkEmail(String email) throws InvalidCreationException { if (email == null || email.isBlank()) { - throw new InvalidCreationException("Vendor email cannot be blank"); + throw new InvalidCreationException("Customer email cannot be blank"); } if (email.trim().length() > 100) { - throw new InvalidCreationException("Vendor email cannot be longer than 100 characters"); + throw new InvalidCreationException("Customer email cannot be longer than 100 characters"); } } private void checkName(String name) throws InvalidCreationException { if (name == null || name.isBlank()) { - throw new InvalidCreationException("Vendor name cannot be blank"); + throw new InvalidCreationException("Customer name cannot be blank"); } if (name.length() > 50) { - throw new InvalidCreationException("Vendor name cannot exceed 50 characters"); + throw new InvalidCreationException("Customer name cannot exceed 50 characters"); } }