Search in sources :

Example 1 with CompilationException

use of net.sourceforge.processdash.data.compiler.CompilationException in project processdash by dtuma.

the class DataRepository method putExpression.

public void putExpression(String name, String prefix, String expression) throws MalformedValueException {
    try {
        CompiledFunction f = new CompiledFunction(name, Compiler.compile(expression), this, prefix);
        putValue(name, f, IS_NOT_DEFAULT_VAL);
    } catch (CompilationException e) {
        throw new MalformedValueException();
    }
}
Also used : CompilationException(net.sourceforge.processdash.data.compiler.CompilationException) MalformedValueException(net.sourceforge.processdash.data.MalformedValueException)

Aggregations

MalformedValueException (net.sourceforge.processdash.data.MalformedValueException)1 CompilationException (net.sourceforge.processdash.data.compiler.CompilationException)1