ca.gc.aafc.dina.repository.GoneException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
package ca.gc.aafc.dina.repository;
import io.crnk.core.engine.document.ErrorData;
import io.crnk.core.exception.CrnkMappableException;
/**
* Crnk Exception for HTTP 410 : GONE
*
*/
public class GoneException extends CrnkMappableException {
private static final long serialVersionUID = 2658981047986565140L;
public GoneException(String title, String message) {
this(title, message, null);
}
public GoneException(String title, String message, String link) {
super(410, ErrorData.builder()
.setTitle(title)
.setDetail(message)
.setStatus("410")
.setAboutLink(link)
.build());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy