io.gdcc.xoai.dataprovider.exceptions.handler.IdDoesNotExistException Maven / Gradle / Ivy
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package io.gdcc.xoai.dataprovider.exceptions.handler;
import io.gdcc.xoai.model.oaipmh.Error;
/**
* @author Development @ Lyncode
* @version 3.1.0
*/
public class IdDoesNotExistException extends HandlerException {
@Override
public Error.Code getErrorCode() {
return Error.Code.ID_DOES_NOT_EXIST;
}
private static final long serialVersionUID = -657866486396669641L;
/** Creates a new instance of IdDoesNotExistException
without detail message. */
public IdDoesNotExistException() {}
/**
* Constructs an instance of IdDoesNotExistException
with the specified detail
* message.
*
* @param msg the detail message.
*/
public IdDoesNotExistException(String msg) {
super(msg);
}
public IdDoesNotExistException(Exception e) {
super(e);
}
}