com.icthh.xm.commons.exceptions.SkipPermissionException Maven / Gradle / Ivy
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);
}
}