NotificationException.java 913 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.cq.mobile.notifications.impl.exceptions;

public class NotificationException
extends Exception {
    private int statusCode = 1000;
    public static final int DEFAULT_STATUS = 1000;

    public NotificationException(String message, Throwable cause) {
        super(message, cause);
    }

    public NotificationException(String message) {
        super(message);
    }

    public NotificationException(String message, Integer code) {
        super(message);
        this.setStatusCode(code);
    }

    public NotificationException(String message, Integer code, Throwable cause) {
        super(message, cause);
        this.setStatusCode(code);
    }

    public int getStatusCode() {
        return this.statusCode;
    }

    private void setStatusCode(Integer code) {
        if (code != null) {
            this.statusCode = code;
        }
    }
}