1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.common.lib.to;
20
21 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
22 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
23 import java.util.ArrayList;
24 import java.util.List;
25 import org.apache.syncope.common.lib.BaseBean;
26 import org.apache.syncope.common.lib.types.ClientExceptionType;
27
28 public class ErrorTO implements BaseBean {
29
30 private static final long serialVersionUID = 2435764161719225927L;
31
32 private int status;
33
34 private ClientExceptionType type;
35
36 private final List<String> elements = new ArrayList<>();
37
38 public int getStatus() {
39 return status;
40 }
41
42 public void setStatus(final int status) {
43 this.status = status;
44 }
45
46 public ClientExceptionType getType() {
47 return type;
48 }
49
50 public void setType(final ClientExceptionType type) {
51 this.type = type;
52 }
53
54 @JacksonXmlElementWrapper(localName = "elements")
55 @JacksonXmlProperty(localName = "element")
56 public List<String> getElements() {
57 return elements;
58 }
59 }