1 /* 2 * Copyright (c) 2003-2008, by Henrik Arro and Contributors 3 * 4 * This file is part of JSeq, a tool to automatically create 5 * sequence diagrams by tracing program execution. 6 * 7 * See <http://jseq.sourceforge.net> for more information. 8 * 9 * JSeq is free software: you can redistribute it and/or modify 10 * it under the terms of the GNU Lesser General Public License as 11 * published by the Free Software Foundation, either version 3 of 12 * the License, or (at your option) any later version. 13 * 14 * JSeq is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public License 20 * along with JSeq. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 23 package th.co.edge.jseq; 24 25 /** 26 * A <code>FormatException</code> signals that a <code>Formatter</code> 27 * failed to create a diagram. 28 * 29 * @see Formatter#format(ActivationList) 30 */ 31 public class FormatException extends Exception { 32 33 /** 34 * Creates a new <code>FormatException</code> with the given detail 35 * message. 36 * 37 * @param message 38 * the detail message 39 */ 40 public FormatException(String message) { 41 super(message); 42 } 43 44 /** 45 * Creates a new <code>FormatException</code> with the given detail 46 * message and root cause. 47 * 48 * @param message 49 * the detail message 50 * @param cause 51 * the root cause of this exception 52 */ 53 public FormatException(String message, Throwable cause) { 54 super(message, cause); 55 } 56 57 /** 58 * Creates a new <code>FormatException</code> with the given root cause. 59 * 60 * @param cause 61 * the root cause 62 */ 63 public FormatException(Throwable cause) { 64 super(cause); 65 } 66 }