package com.mosquito.project.permission;

/**
 * 权限不足异常
 */
public class PermissionDeniedException extends RuntimeException {

    private final String permissionCode;

    public PermissionDeniedException(String message) {
        super(message);
        this.permissionCode = null;
    }

    public PermissionDeniedException(String message, String permissionCode) {
        super(message);
        this.permissionCode = permissionCode;
    }

    public String getPermissionCode() {
        return permissionCode;
    }
}
