1
2
3
4
5
6
7
8
9
10
11 package org.csveed.report;
12
13 import java.util.ArrayList;
14 import java.util.List;
15
16
17
18
19 public abstract class AbstractCsvError implements CsvError {
20
21
22 private String message;
23
24
25
26
27
28
29
30 protected AbstractCsvError(String message) {
31 this.message = message;
32 }
33
34 @Override
35 public String getMessage() {
36 return this.message;
37 }
38
39
40
41
42
43
44 protected List<String> getMessageAsList() {
45 List<String> lines = new ArrayList<>();
46 lines.add(getMessage());
47 return lines;
48 }
49
50 }