001package org.maltparser.core.syntaxgraph.headrules; 002 003import org.maltparser.core.exception.MaltChainedException; 004 005/** 006 * HeadRuleException extends the MaltChainedException class and is thrown by classes 007 * within the headrule package. 008 * 009 * @author Johan Hall 010**/ 011public class HeadRuleException extends MaltChainedException { 012 public static final long serialVersionUID = 8045568022124816379L; 013 014 /** 015 * Creates a HeadRuleException object with a message 016 * 017 * @param message the message 018 */ 019 public HeadRuleException(String message) { 020 super(message); 021 } 022 023 /** 024 * Creates a HeadRuleException 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 HeadRuleException(String message, Throwable cause) { 030 super(message, cause); 031 } 032}