All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gdcc.xoai.dataprovider.exceptions.handler.NoMetadataFormatsException 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 NoMetadataFormatsException extends HandlerException {

    private static final long serialVersionUID = 7091872607176190034L;

    @Override
    public Error.Code getErrorCode() {
        return Error.Code.NO_METADATA_FORMATS;
    }

    /** Creates a new instance of NoMetadataFormatsException without detail message. */
    public NoMetadataFormatsException() {}

    /**
     * Constructs an instance of NoMetadataFormatsException with the specified detail
     * message.
     *
     * @param msg the detail message.
     */
    public NoMetadataFormatsException(String msg) {
        super(msg);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy