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

com.bazaarvoice.emodb.auth.role.RoleExistsException Maven / Gradle / Ivy

There is a newer version: 6.5.190
Show newest version
package com.bazaarvoice.emodb.auth.role;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Exception thrown when attempting to create a role which already exists.
 */
@JsonIgnoreProperties({"cause", "localizedMessage", "stackTrace"})
public class RoleExistsException extends RuntimeException {
    private final String _group;
    private final String _id;

    public RoleExistsException(String group, String id) {
        super("Role exists");
        _group = group;
        _id = id;
    }
    
    public String getGroup() {
        return _group;
    }

    public String getId() {
        return _id;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy