~ubuntu-branches/ubuntu/karmic/apgdiff/karmic

« back to all changes in this revision

Viewing changes to src/main/java/cz/startnet/utils/pgdiff/parsers/ParserException.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: ParserException.java 80 2007-09-01 20:25:45Z fordfrog $
 
3
 */
 
4
package cz.startnet.utils.pgdiff.parsers;
 
5
 
 
6
/**
 
7
 * Thrown if parsing problem occured.
 
8
 *
 
9
 * @author fordfrog
 
10
 * @version $Id: ParserException.java 80 2007-09-01 20:25:45Z fordfrog $
 
11
 */
 
12
public class ParserException extends RuntimeException {
 
13
    /**
 
14
     * Predefined message string that can be used as default exception
 
15
     * message with provided parsed line.
 
16
     */
 
17
    public static final String CANNOT_PARSE_COMMAND = "Cannot parse command: ";
 
18
 
 
19
    /**
 
20
     * Creates a new instance of <code>ParserException</code> without
 
21
     * detail message.
 
22
     */
 
23
    public ParserException() {
 
24
        super();
 
25
    }
 
26
 
 
27
    /**
 
28
     * Constructs an instance of <code>ParserException</code> with the
 
29
     * specified detail message.
 
30
     *
 
31
     * @param msg the detail message
 
32
     */
 
33
    public ParserException(String msg) {
 
34
        super(msg);
 
35
    }
 
36
 
 
37
    /**
 
38
     * Constructs an instance of <code>ParserException</code> with the
 
39
     * specified detail message.
 
40
     *
 
41
     * @param msg the detail message
 
42
     * @param cause cause of the exception
 
43
     */
 
44
    public ParserException(String msg, Throwable cause) {
 
45
        super(msg, cause);
 
46
    }
 
47
}