aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/exceptions/UiException.java
blob: b05c5025dfc4258166e26157dc616e9d8e4c9aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package de.thedevstack.conversationsplus.exceptions;

/**
 * Exception to be shown in UI.
 */
public class UiException extends Exception {
    private static final long serialVersionUID = -1010015239132881427L;
    private int resId;

    public UiException(int resId) {
        this.resId = resId;
    }

    public UiException(int resId, Throwable e) {
        super(e);
        this.resId = resId;
    }

    public int getResId() {
        return resId;
    }
}