Skip to content

Commit 8f2b07e

Browse files
committed
AYS-487 | AysUserNotSuperAdminException Has Been Extended from AysForbiddenException Instead of AccessDeniedException Class
1 parent cfd61f8 commit 8f2b07e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/ays/auth/util/exception/AysUserNotSuperAdminException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package org.ays.auth.util.exception;
22

3-
import org.springframework.security.access.AccessDeniedException;
3+
import org.ays.common.util.exception.AysForbiddenException;
44

55
import java.io.Serial;
66

77
/**
88
* Exception to be thrown when a user is not a super admin but tries to perform an action that requires super admin privileges.
99
*/
10-
public final class AysUserNotSuperAdminException extends AccessDeniedException {
10+
public final class AysUserNotSuperAdminException extends AysForbiddenException {
1111

1212
/**
1313
* Unique identifier for serialization.

0 commit comments

Comments
 (0)