001 package org.maltparser.core.io.dataformat;
002
003 import org.maltparser.core.exception.MaltChainedException;
004
005 /**
006 * DataFormatException extends the MaltChainedException class and is thrown by classes
007 * within the dataformat package.
008 *
009 * @author Johan Hall
010 * @since 1.0
011 **/
012 public class DataFormatException extends MaltChainedException {
013 public static final long serialVersionUID = 8045568022124816379L;
014
015 /**
016 * Creates a DataFormatException object with a message
017 *
018 * @param message the message
019 */
020 public DataFormatException(String message) {
021 super(message);
022 }
023
024 /**
025 * Creates a DataFormatException object with a message and a cause to the exception.
026 *
027 * @param message the message
028 * @param cause the cause to the exception
029 */
030 public DataFormatException(String message, Throwable cause) {
031 super(message, cause);
032 }
033 }