Преглед на файлове

新增拒绝访问异常

周浩 преди 9 години
родител
ревизия
a45e407265
променени са 1 файла, в които са добавени 20 реда и са изтрити 0 реда
  1. 20 0
      hsweb-web-core/src/main/java/org/hsweb/web/core/exception/AuthorizeForbiddenException.java

+ 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);
+    }
+}