Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JUploadExceptionUploadFailed |
|
| 1.0;1 |
1 | // | |
2 | // $Id: JUploadExceptionUploadFailed.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-09-15 | |
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 exception occurs when an upload failed. It can be generated if the | |
25 | * server response to the upload doesn't match the | |
26 | * {@link wjhk.jupload2.policies.UploadPolicy#PROP_STRING_UPLOAD_SUCCESS} | |
27 | * regular expression. | |
28 | * | |
29 | * @author etienne_sf | |
30 | * @author $Revision: 887 $ | |
31 | */ | |
32 | public class JUploadExceptionUploadFailed extends JUploadException { | |
33 | ||
34 | /** A generated serialVersionUID, to avoid warning during compilation */ | |
35 | private static final long serialVersionUID = -9031106357048838553L; | |
36 | ||
37 | /** | |
38 | * Constructs a new exception with the specified detail message. | |
39 | * | |
40 | * @param msg The message for this instance. | |
41 | */ | |
42 | public JUploadExceptionUploadFailed(String msg) { | |
43 | 4 | super(msg); |
44 | 4 | } |
45 | ||
46 | /** | |
47 | * Constructs a new exception with the specified cause. | |
48 | * | |
49 | * @param cause The cause for this instance. | |
50 | */ | |
51 | public JUploadExceptionUploadFailed(Exception cause) { | |
52 | 0 | super(cause); |
53 | 0 | } |
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 JUploadExceptionUploadFailed(String msg, Throwable cause) { | |
62 | 0 | super(msg, cause); |
63 | 0 | } |
64 | } |