blob: 7fb1948fa9ac618f7a6adb46e4b612d32bdcd55c (
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
41
42
43
44
45
46
47
48
 | package com.p4square.ccbapi.model;
import javax.xml.bind.annotation.*;
/**
 * Representation of an error response returned by CCB.
 */
@XmlRootElement(name="error")
@XmlAccessorType(XmlAccessType.NONE)
public class CCBErrorResponse {
    @XmlAttribute
    private int number;
    @XmlAttribute
    private String type;
    @XmlValue
    private String description;
    public int getNumber() {
        return number;
    }
    public void setNumber(int number) {
        this.number = number;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    @Override
    public String toString() {
        return String.format("%03d %s Error: %s", getNumber(), getType(), getDescription());
    }
}
 |