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