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

com.github.andyshao.exception.ResultException Maven / Gradle / Ivy

The newest version!
package com.github.andyshao.exception;

import lombok.Getter;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Sep 27, 2017
* Encoding:UNIX UTF-8 * @author andy.shao * */ public class ResultException extends RuntimeException{ private static final long serialVersionUID = 4909234766541027522L; /**{@link Result}*/ @Getter private final Result result; /** * With {@link Result} * @param result {@link Result} */ public ResultException(Result result) { super(result.description()); this.result = result; } /** * With {@link Result} and previous exception * @param result {@link Result} * @param e previous exception */ public ResultException(Result result, Throwable e) { super(result.description(), e); this.result = result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy