org.unlaxer.tinyexpression.Errors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tinyExpression Show documentation
Show all versions of tinyExpression Show documentation
TinyExpression implemented with Unlaxer
The newest version!
package org.unlaxer.tinyexpression;
import java.util.Optional;
public class Errors{
public final Optional raisedException;
public final Optional message;
public Errors() {
super();
raisedException = Optional.empty();
message=Optional.empty();
}
public Errors(Optional raisedException, Optional message) {
super();
this.raisedException = raisedException;
this.message = message;
}
public Errors(Exception exception) {
raisedException = Optional.of(exception);
message = Optional.ofNullable(exception.getMessage());
}
}