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

org.unlaxer.sample.calc.Errors Maven / Gradle / Ivy

There is a newer version: 1.1.26
Show newest version
package org.unlaxer.sample.calc;

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