![JAR search and dependency download from the Maven repository](/logo.png)
com.github.andyshao.exception.ResultError 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;
import java.io.Serial;
/**
*
* Title:
* Descript:
* Copyright: Copryright(c) Oct 23, 2017
* Encoding:UNIX UTF-8
* @author andy.shao
*
*/
public class ResultError extends RuntimeException{
@Serial
private static final long serialVersionUID = 4909234766541027522L;
/**{@link Result}*/
@Getter
private final Result> result;
/**
* With {@link Result}
* @param result {@link Result}
*/
public ResultError(Result> result) {
super(result.description());
this.result = result;
}
/**
* With {@link Result} and previous exception
* @param result {@link Result}
* @param e previous exception
*/
public ResultError(Result> result, Throwable e) {
super(result.description(), e);
this.result = result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy