~ubuntu-branches/ubuntu/raring/apgdiff/raring

« back to all changes in this revision

Viewing changes to src/main/java/cz/startnet/utils/pgdiff/loader/FileException.java

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2008-09-09 15:42:54 UTC
  • Revision ID: james.westby@ubuntu.com-20080909154254-458sv7ew1rczdal1
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: FileException.java 80 2007-09-01 20:25:45Z fordfrog $
 
3
 */
 
4
package cz.startnet.utils.pgdiff.loader;
 
5
 
 
6
/**
 
7
 * Exception thrown if problem occured while reading or writing file.
 
8
 *
 
9
 * @author fordfrog
 
10
 * @version $Id: FileException.java 80 2007-09-01 20:25:45Z fordfrog $
 
11
 */
 
12
public class FileException extends RuntimeException {
 
13
    /**
 
14
     * Predefined message that can be used when cannot read file.
 
15
     */
 
16
    public static final String CANNOT_READ_FILE = "Cannot read file";
 
17
 
 
18
    /**
 
19
     * Creates a new instance of <code>FileException</code> without
 
20
     * detail message.
 
21
     */
 
22
    public FileException() {
 
23
        super();
 
24
    }
 
25
 
 
26
    /**
 
27
     * Constructs an instance of <code>FileException</code> with the
 
28
     * specified detail message.
 
29
     *
 
30
     * @param msg the detail message
 
31
     */
 
32
    public FileException(String msg) {
 
33
        super(msg);
 
34
    }
 
35
 
 
36
    /**
 
37
     * Constructs an instance of <code>FileException</code> with the
 
38
     * specified detail message.
 
39
     *
 
40
     * @param msg the detail message
 
41
     * @param cause cause of the exception
 
42
     */
 
43
    public FileException(String msg, Throwable cause) {
 
44
        super(msg, cause);
 
45
    }
 
46
}