1 //
2 // $Id: JUploadIOException.java 887 2009-11-06 21:07:21Z etienne_sf $
3 //
4 // jupload - A file upload applet.
5 // Copyright 2007 The JUpload Team
6 //
7 // Created: 2006-11-20
8 // Creator: etienne_sf
9 // Last modified: $Date: 2009-11-06 22:07:21 +0100 (ven., 06 nov. 2009) $
10 //
11 // This program is free software; you can redistribute it and/or modify it under
12 // the terms of the GNU General Public License as published by the Free Software
13 // Foundation; either version 2 of the License, or (at your option) any later
14 // version. This program is distributed in the hope that it will be useful, but
15 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 // details. You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software Foundation, Inc.,
19 // 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 package wjhk.jupload2.exception;
22
23 /**
24 * This class should be used for all implementations of FileData or UploadPolicy
25 * that want to throw an IO exception, and need to be conform with the interface
26 * definition.
27 *
28 * @author etienne_sf
29 * @version $Revision: 887 $
30 */
31
32 public class JUploadIOException extends JUploadException {
33
34 /** A generated serialVersionUID, to avoid warning during compilation */
35 private static final long serialVersionUID = 4202340617039827612L;
36
37 /**
38 * Constructs a new exception with the specified detail message.
39 *
40 * @param msg The message for this instance.
41 */
42 public JUploadIOException(String msg) {
43 super(msg);
44 }
45
46 /**
47 * Constructs a new exception with the specified cause.
48 *
49 * @param cause The cause for this instance.
50 */
51 public JUploadIOException(Exception cause) {
52 super(cause);
53 }
54
55 /**
56 * Constructs a new exception with the specified detail message and cause.
57 *
58 * @param msg The message for this instance.
59 * @param cause The cause for this instance.
60 */
61 public JUploadIOException(String msg, Exception cause) {
62 super(msg, cause);
63 }
64
65 }