XMLImportException.java :  » Database-DBMS » perst » org » garret » perst » Java Open Source

Java Open Source » Database DBMS » perst 
perst » org » garret » perst » XMLImportException.java
package org.garret.perst;

/**
 * Exception thrown during import of data from XML file in database
 */
public class XMLImportException extends Exception { 
    public XMLImportException(int line, int column, String message) { 
        super("In line " + line + " column " + column + ": " + message);
        this.line = line;
        this.column = column;
        this.message = message;
    }

    public String getMessageText() { 
        return message;
    }
    
    public int getLine() { 
        return line;
    }

    public int getColumn() { 
        return column;
    }

    private int line;
    private int column;
    private String message;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.