All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dengchen2020.security.exception.NoPermissionException Maven / Gradle / Ivy

package io.github.dengchen2020.security.exception;

import io.github.dengchen2020.core.exception.call.ViewToastException;

/**
 * 无权限异常
 * @author dengchen
 * @since 2024/7/22
 */
public class NoPermissionException extends ViewToastException {

    public static final Integer CODE = 403;

    public static final String DEFAULT_MESSAGE = "您没有权限操作该功能";

    public NoPermissionException(String message) {
        super(message, CODE);
    }

    public NoPermissionException() {
        super(DEFAULT_MESSAGE, CODE);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy