com.github.andyshao.exception.ResultException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Gear Show documentation
Show all versions of Gear Show documentation
Enhance and formating the coding of JDK
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