All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.qdox.parser.ParseException Maven / Gradle / Ivy

The newest version!
package com.thoughtworks.qdox.parser;

/**
 * Thrown to indicate an error during parsing
 */
public class ParseException extends RuntimeException {

    private int line;
    private int column;
    private String errorMessage;

    public ParseException(String message, int line, int column) {
        errorMessage = message + " @[" + line + "," + column + "] in ";
        this.line = line;
        this.column = column;
    }

    public int getLine() {
        return line;
    }

    public int getColumn() {
        return column;
    }

    public void setSourceInfo(String sourceInfo) {
        errorMessage += sourceInfo;
    }

    public String getMessage() {
        return errorMessage;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy