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