com.base.Http.Response.ErrorBag.getErrors()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
1
package com.base.Http.Response;
2
3
import java.util.Map;
4
5
public class ErrorBag {
6
7
    /**
8
     * Error's Message
9
     */
10
    protected String message;
11
12
    /**
13
     * Map of Errors
14
     */
15
    protected Map<String, String[]> errors;
16
17
    /**
18
     * Return Error Message
19
     *
20
     * @return Message
21
     */
22
    public String getMessage() {
23
        return message;
24
    }
25
26
    /**
27
     * Set Error Message
28
     *
29
     * @param message
30
     * @return
31
     */
32
    public ErrorBag setMessage(String message) {
33
        this.message = message;
34
        return this;
35
    }
36
37
    /**
38
     * Return Errors's Map
39
     *
40
     * @return
41
     */
42
    public Map<String, String[]> getErrors() {
43
        return errors;
44
    }
45
46
    /**
47
     * Set Errors
48
     *
49
     * @param errors
50
     * @return
51
     */
52
    public ErrorBag setErrors(Map<String, String[]> errors) {
53
        this.errors = errors;
54
        return this;
55
    }
56
}
57