Newer
Older
csv-parser / src / main / java / io / ljunggren / csv / parser / exception / CsvParseException.java
package io.ljunggren.csv.parser.exception;

/**
 * Thrown when the parser is unable to read, parse, or convert CSV input.
 *
 * <p>This is an unchecked exception so callers are not forced to wrap
 * every parser invocation in a {@code try/catch}, but the cause is always
 * preserved when one is available.</p>
 */
public class CsvParseException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public CsvParseException(String message) {
        super(message);
    }

    public CsvParseException(String message, Throwable cause) {
        super(message, cause);
    }

}