1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-14 21:35:03 -05:00
filebot/source/net/filebot/format/ExpressionException.java
2016-10-20 21:44:39 +08:00

30 lines
595 B
Java

package net.filebot.format;
import javax.script.ScriptException;
public class ExpressionException extends ScriptException {
private final String message;
public ExpressionException(String message, ScriptException cause) {
super(message, cause.getFileName(), cause.getLineNumber(), cause.getColumnNumber());
// can't set message via super constructor
this.message = message;
}
public ExpressionException(Exception e) {
super(e);
// can't set message via super constructor
this.message = e.getMessage();
}
@Override
public String getMessage() {
return message;
}
}