001package edu.pdx.cs410J; 002 003/** 004 * A <code>ParserException</code> is thrown when a file or other data 005 * source is being parsed and it is decided that the source is 006 * malformatted. 007 * 008 * @author David Whitlock 009 */ 010@SuppressWarnings("serial") 011public class ParserException extends Exception { 012 013 /** 014 * Creates a new <code>ParserException</code> with a given 015 * descriptive message. 016 */ 017 public ParserException(String description) { 018 super(description); 019 } 020 021 /** 022 * Creates a new <code>ParserException</code> that was caused by 023 * another exception. 024 */ 025 public ParserException(String description, Throwable cause) { 026 super(description, cause); 027 } 028 029}