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

com.github.liuyehcf.framework.compile.engine.CompileResult Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy