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

com.icthh.xm.commons.exceptions.SkipPermissionException Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package com.icthh.xm.commons.exceptions;

import static java.util.Collections.singletonList;

import java.util.Collection;
import lombok.Getter;

public class SkipPermissionException extends RuntimeException {

    @Getter
    private final Collection permissions;

    public SkipPermissionException(final String message, final Collection permissions) {
        super(message);
        this.permissions = permissions;
    }

    public SkipPermissionException(final String message, final String permission) {
        super(message);
        this.permissions = singletonList(permission);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy