ソースを参照

新增拒绝访问异常

周浩 9 年 前
コミット
a45e407265

+ 20 - 0
hsweb-web-core/src/main/java/org/hsweb/web/core/exception/AuthorizeForbiddenException.java

@@ -0,0 +1,20 @@
+package org.hsweb.web.core.exception;
+
+/**
+ * Created by 浩 on 2015-12-23 0023.
+ */
+public class AuthorizeForbiddenException extends BusinessException {
+    private static final long serialVersionUID = 2422918455013900645L;
+
+    public AuthorizeForbiddenException(String message) {
+        this(message, 403);
+    }
+
+    public AuthorizeForbiddenException(String message, int status) {
+        super(message, status);
+    }
+
+    public AuthorizeForbiddenException(String message, Throwable cause, int status) {
+        super(message, cause, status);
+    }
+}