All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.tinyexpression.Errors Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show 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());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy