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

org.dspace.importer.external.exception.SourceExceptionHandler Maven / Gradle / Ivy

There is a newer version: 8.0
Show newest version
/**
 * 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 org.dspace.importer.external.exception;

import org.dspace.importer.external.service.components.AbstractRemoteMetadataSource;

/**
 * Represent a  handler that forces implementations to define their own behaviour for exceptions originating from
 *
 * @author Antoine Snyers (antoine at atmire dot com)
 */
public abstract interface SourceExceptionHandler {

    /**
     * Represents a method contract to handle Exceptions originating from the source in a specific way
     * Implementations define their own desired behaviour
     *
     * @param source The source of the exception
     */
    public abstract void handle(T source);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy