com.github.liuyehcf.framework.compile.engine.CompileResult Maven / Gradle / Ivy
package com.github.liuyehcf.framework.compile.engine;
/**
* 编译结果
*
* @author hechenfeng
* @date 2018/04/16
*/
public class CompileResult {
/**
* 编译是否成功
*/
private final boolean success;
/**
* 错误信息
*/
private final String message;
/**
* 异常
*/
private final Throwable error;
/**
* 编译结果
*/
private final T result;
public CompileResult(boolean success, String message, Throwable error, T result) {
this.success = success;
this.message = message;
this.error = error;
this.result = result;
}
public boolean isSuccess() {
return success;
}
public String getMessage() {
return message;
}
public Throwable getError() {
return error;
}
public T getResult() {
return result;
}
}