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

com.bazaarvoice.emodb.uac.api.InvalidEmoPermissionException Maven / Gradle / Ivy

There is a newer version: 6.5.190
Show newest version
package com.bazaarvoice.emodb.uac.api;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Exception thrown when a permission string in a request was rejected by Emo.
 */
@JsonIgnoreProperties({"cause", "localizedMessage", "stackTrace"})
public class InvalidEmoPermissionException extends RuntimeException {

    private String _permission;

    public InvalidEmoPermissionException() {
    }

    @JsonCreator
    public InvalidEmoPermissionException(@JsonProperty("message") String message, @JsonProperty("permission") String permission) {
        super(message);
        _permission = permission;
    }

    public String getPermission() {
        return _permission;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy