blob: 63df7067ab2420f1e5dca62ef2e91b9618de924b (
plain)
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
40
|
package com.netscape.certsrv.base;
public class UserNotFoundException extends ResourceNotFoundException {
private static final long serialVersionUID = -3446066672148673666L;
public String userId;
public UserNotFoundException(String userId) {
this(userId, "User " + userId + " not found");
}
public UserNotFoundException(String userId, String message) {
super(message);
this.userId = userId;
}
public UserNotFoundException(String userId, String message, Throwable cause) {
super(message, cause);
this.userId = userId;
}
public UserNotFoundException(Data data) {
super(data);
userId = data.getAttribute("userId");
}
public Data getData() {
Data data = super.getData();
data.setAttribute("userId", userId);
return data;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
}
|