NotificationException.java
913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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;
}
}
}