Search in sources :

Example 1 with ParseException

use of net.sourceforge.processdash.tool.probe.SizePerItemTable.ParseException in project processdash by dtuma.

the class EditSizePerItemTables method doPost.

protected void doPost() throws IOException {
    DashController.checkIP(env.get("REMOTE_ADDR"));
    parseFormData();
    if (parameters.containsKey(SAVE) && Settings.isReadWrite()) {
        try {
            save(getParameter(NAME), getParameter(UNITS), getParameter(CONTENTS));
            getDataRepository().putValue(CHANGE_DATA_NAME, new DoubleData(uniqueNumber));
        } catch (ParseException e) {
            writeHeader();
            redrawForm(e);
            return;
        }
    }
    out.print("Location: " + SCRIPT + "?" + uniqueNumber + "\r\n\r\n");
    uniqueNumber++;
}
Also used : ParseException(net.sourceforge.processdash.tool.probe.SizePerItemTable.ParseException) DoubleData(net.sourceforge.processdash.data.DoubleData)

Aggregations

DoubleData (net.sourceforge.processdash.data.DoubleData)1 ParseException (net.sourceforge.processdash.tool.probe.SizePerItemTable.ParseException)1