| 1 | /* |
| 2 | * Copyright (C) 2006 Steve Ratcliffe |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * |
| 14 | * Author: Steve Ratcliffe |
| 15 | * Create date: 18-Dec-2006 |
| 16 | */ |
| 17 | package uk.me.parabola.imgfmt; |
| 18 | |
| 19 | /** |
| 20 | * Thrown for any kind of malformed input to the mapping program. |
| 21 | * |
| 22 | * @author Steve Ratcliffe |
| 23 | */ |
| 24 | public class FormatException extends RuntimeException { |
| 25 | |
| 26 | /** |
| 27 | * Constructs a new exception with the specified detail message and |
| 28 | * cause. <p>Note that the detail message associated with |
| 29 | * <code>cause</code> is <i>not</i> automatically incorporated in |
| 30 | * this exception's detail message. |
| 31 | * |
| 32 | * @param message the detail message (which is saved for later retrieval |
| 33 | * by the {@link #getMessage()} method). |
| 34 | * @param cause the cause (which is saved for later retrieval by the |
| 35 | * {@link #getCause()} method). (A <tt>null</tt> value is |
| 36 | * permitted, and indicates that the cause is nonexistent or |
| 37 | * unknown.) |
| 38 | * @since 1.4 |
| 39 | */ |
| 40 | public FormatException(String message, Throwable cause) { |
| 41 | super(message, cause); |
| 42 | } |
| 43 | |
| 44 | public FormatException(String message) { |
| 45 | super(message); |
| 46 | } |
| 47 | } |