org.dspace.importer.external.exception.SourceExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
/**
* 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