| 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: 02-Dec-2006 |
| 16 | */ |
| 17 | package uk.me.parabola.imgfmt; |
| 18 | |
| 19 | import java.io.IOException; |
| 20 | |
| 21 | /** |
| 22 | * Thrown when a file already exists and would be overwritten. |
| 23 | * |
| 24 | * @author Steve Ratcliffe |
| 25 | */ |
| 26 | public class FileExistsException extends IOException { |
| 27 | |
| 28 | /** |
| 29 | * Constructs a new exception with the specified detail message. The |
| 30 | * cause is not initialized, and may subsequently be initialized by |
| 31 | * a call to {@link #initCause}. |
| 32 | * |
| 33 | * @param message the detail message. The detail message is saved for |
| 34 | * later retrieval by the {@link #getMessage()} method. |
| 35 | */ |
| 36 | public FileExistsException(String message) { |
| 37 | super(message); |
| 38 | } |
| 39 | } |