NewsletterReplicationException.java 1.11 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.cq.mcm.campaign;

import com.adobe.cq.mcm.campaign.NewsletterException;

public class NewsletterReplicationException
extends NewsletterException {
    private final String userID;
    private final String path;
    private final Type type;

    public NewsletterReplicationException(String message, Throwable throwable, Type type, String userId, String path) {
        super(message, throwable);
        this.type = type;
        this.userID = userId;
        this.path = path;
    }

    public NewsletterReplicationException(String message, Throwable throwable, Type type) {
        this(message, throwable, type, null, null);
    }

    public NewsletterReplicationException(String message, Throwable throwable) {
        this(message, throwable, Type.GENERIC);
    }

    public String getUserID() {
        return this.userID;
    }

    public String getPath() {
        return this.path;
    }

    public Type getType() {
        return this.type;
    }

    public static enum Type {
        NO_ACCESS,
        GENERIC;
        

        private Type() {
        }
    }

}