From 41bc5df9cda6a43ef47313622dd1ffde1480d06f Mon Sep 17 00:00:00 2001 From: KillerADO <wayne8692wayne8692@gmail.com> Date: 星期四, 23 十二月 2021 10:49:04 +0800 Subject: [PATCH] [update] 調整簡訊的service url與新增簡訊的標題欄位 --- pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java b/pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java index 209e562..b43324b 100644 --- a/pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java +++ b/pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java @@ -1,8 +1,11 @@ package com.pollex.pam.web.rest.errors; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.ResponseStatus; + +@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR, reason = "send email failed") public class SendEmailFailException extends RuntimeException { - public SendEmailFailException() { - } + public SendEmailFailException() {} public SendEmailFailException(String message) { super(message); } -- Gitblit v1.8.0