View Javadoc
1   package org.csveed.report;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   public abstract class AbstractCsvError implements CsvError {
7   
8       private String message;
9   
10      public AbstractCsvError(String message) {
11          this.message = message;
12      }
13  
14      @Override
15      public String getMessage() {
16          return this.message;
17      }
18  
19      protected List<String> getMessageAsList() {
20          List<String> lines = new ArrayList<>();
21          lines.add(getMessage());
22          return lines;
23      }
24  
25  }