io.gdcc.xoai.dataprovider.exceptions.handler.CannotDisseminateFormatException 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 */
public class CannotDisseminateFormatException extends HandlerException {
private static final long serialVersionUID = -6654346398053844736L;
@Override
public Error.Code getErrorCode() {
return Error.Code.CANNOT_DISSEMINATE_FORMAT;
}
/**
* Creates a new instance of CannotDisseminateFormatException
without detail
* message.
*/
public CannotDisseminateFormatException() {}
/**
* Constructs an instance of CannotDisseminateFormatException
with the specified
* detail message.
*
* @param msg the detail message.
*/
public CannotDisseminateFormatException(String msg) {
super(msg);
}
}