View Javadoc
1   /*
2    * CSVeed (https://github.com/42BV/CSVeed)
3    *
4    * Copyright 2013-2023 CSVeed.
5    *
6    * All rights reserved. This program and the accompanying materials
7    * are made available under the terms of The Apache Software License,
8    * Version 2.0 which accompanies this distribution, and is available at
9    * https://www.apache.org/licenses/LICENSE-2.0.txt
10   */
11  package org.csveed.report;
12  
13  import java.util.ArrayList;
14  import java.util.List;
15  
16  /**
17   * The Class GeneralError.
18   */
19  public class GeneralError extends AbstractCsvError {
20  
21      /**
22       * Instantiates a new general error.
23       *
24       * @param message
25       *            the message
26       */
27      public GeneralError(String message) {
28          super(message);
29      }
30  
31      @Override
32      public List<String> getPrintableLines() {
33          return getMessageAsList();
34      }
35  
36      @Override
37      public List<RowPart> getRowParts() {
38          return new ArrayList<>();
39      }
40  
41      @Override
42      public int getLineNumber() {
43          return -1;
44      }
45  }