From 204be5a468a29c44c292dc7d8ec929844fb8a2f1 Mon Sep 17 00:00:00 2001 From: chandrasegar Date: Sun, 25 Feb 2024 23:53:07 +0530 Subject: [PATCH 1/3] custome exception added --- src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java index 7e117af..7132c15 100644 --- a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java +++ b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java @@ -58,7 +58,7 @@ public class MailDAOImpl implements MailDAO { } } catch (SQLException e) { logger.info(e.getMessage()); - throw new SQLException("error processing sql", e); + throw new SQLException("error processing sql !!", e); } catch (IOException e) { logger.info(e.getMessage()); throw new MailProcessingException("Error processing mailModel", e); -- 2.36.3 From cc95588325310ca9e3ccb86b14e069fe9f212ef4 Mon Sep 17 00:00:00 2001 From: chandrasegar Date: Sun, 25 Feb 2024 23:30:21 +0530 Subject: [PATCH 2/3] custome exception added --- src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java index 7132c15..7e117af 100644 --- a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java +++ b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java @@ -58,7 +58,7 @@ public class MailDAOImpl implements MailDAO { } } catch (SQLException e) { logger.info(e.getMessage()); - throw new SQLException("error processing sql !!", e); + throw new SQLException("error processing sql", e); } catch (IOException e) { logger.info(e.getMessage()); throw new MailProcessingException("Error processing mailModel", e); -- 2.36.3 From 56732afdf22ea15c0f692b1bf94cdf5517da9446 Mon Sep 17 00:00:00 2001 From: chandrasegar Date: Sun, 25 Feb 2024 23:53:07 +0530 Subject: [PATCH 3/3] custome exception added --- src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java index 7e117af..7132c15 100644 --- a/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java +++ b/src/main/java/entgra/mailsender/DAO/Impl/MailDAOImpl.java @@ -58,7 +58,7 @@ public class MailDAOImpl implements MailDAO { } } catch (SQLException e) { logger.info(e.getMessage()); - throw new SQLException("error processing sql", e); + throw new SQLException("error processing sql !!", e); } catch (IOException e) { logger.info(e.getMessage()); throw new MailProcessingException("Error processing mailModel", e); -- 2.36.3