From 7ccbfdd628a1eb67973844f59c2f6d815180fd01 Mon Sep 17 00:00:00 2001 From: pho6e2qjw <1563847437@qq.com> Date: Wed, 26 Jun 2024 08:40:24 +0800 Subject: [PATCH] Add ServiceException.java --- ServiceException.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ServiceException.java diff --git a/ServiceException.java b/ServiceException.java new file mode 100644 index 0000000..a50daa7 --- /dev/null +++ b/ServiceException.java @@ -0,0 +1,19 @@ +package com.power.travel.core; + +/** + * 服务(业务)异常如“ 账号或密码错误 ”,该异常只做INFO级别的日志记录 @see WebMvcConfiguration + */ +public class ServiceException extends RuntimeException { + private static final long serialVersionUID = 2987069302761521237L; + + public ServiceException() { + } + + public ServiceException(String message) { + super(message); + } + + public ServiceException(String message, Throwable cause) { + super(message, cause); + } +}