Reorganzing Exceptions

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@167865 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-06-04 13:08:43 +00:00
parent 8ea242e4fb
commit 612499745e
44 changed files with 281 additions and 102 deletions

View File

@ -1,5 +0,0 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions;
public interface AlreadyPresent {
}

View File

@ -1,5 +0,0 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions;
public interface AvailableInAnotherContext {
}

View File

@ -1,12 +1,10 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.er;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
package org.gcube.informationsystem.resourceregistry.api.exceptions;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ERAlreadyPresentException extends ERException implements AlreadyPresent {
public class ERAlreadyPresentException extends ERException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,10 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.er;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
package org.gcube.informationsystem.resourceregistry.api.exceptions;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ERAvailableInAnotherContextException extends ERException implements AvailableInAnotherContext {
public class ERAvailableInAnotherContextException extends ERException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,25 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ERCreationException extends ERException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -6223557776095431118L;
public ERCreationException(String message) {
super(message);
}
public ERCreationException(Throwable cause) {
super(cause);
}
public ERCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,9 +1,7 @@
/**
*
*/
package org.gcube.informationsystem.resourceregistry.api.exceptions.er;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
package org.gcube.informationsystem.resourceregistry.api.exceptions;
/**
* @author Luca Frosini (ISTI - CNR)

View File

@ -1,12 +1,10 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.er;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
package org.gcube.informationsystem.resourceregistry.api.exceptions;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ERNotFoundException extends ERException implements NotFound {
public class ERNotFoundException extends ERException {
/**
* Generated Serial Version UID

View File

@ -1,5 +0,0 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions;
public interface NotFound {
}

View File

@ -1,12 +1,9 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.context;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAlreadyPresentException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ContextAlreadyPresentException extends EntityAlreadyPresentException implements AlreadyPresent {
public class ContextAlreadyPresentException extends ContextException {
/**
* Generated Serial Version UID

View File

@ -11,7 +11,7 @@ public class ContextCreationException extends ContextException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -7235498402448768270L;
private static final long serialVersionUID = 7777044293030289951L;
public ContextCreationException(String message) {
super(message);

View File

@ -1,13 +1,10 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.context;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ContextNotFoundException extends EntityNotFoundException implements NotFound {
public class ContextNotFoundException extends ContextException {
/**
* Generated Serial Version UID

View File

@ -1,13 +1,12 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERAlreadyPresentException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class EntityAlreadyPresentException extends ERAlreadyPresentException implements AlreadyPresent {
public class EntityAlreadyPresentException extends ERAlreadyPresentException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERAvailableInAnotherContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class EntityAvailableInAnotherContextException extends ERAvailableInAnotherContextException implements AvailableInAnotherContext {
public class EntityAvailableInAnotherContextException extends ERAvailableInAnotherContextException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,27 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERCreationException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class EntityCreationException extends ERCreationException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -4445129394716597536L;
public EntityCreationException(String message) {
super(message);
}
public EntityCreationException(Throwable cause) {
super(cause);
}
public EntityCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,13 +1,12 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class EntityNotFoundException extends ERNotFoundException implements NotFound {
public class EntityNotFoundException extends ERNotFoundException {
/**
* Generated Serial Version UID

View File

@ -1,6 +1,5 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAlreadyPresentException;
@ -8,7 +7,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.Entity
* @author Luca Frosini (ISTI - CNR)
*
*/
public class FacetAlreadyPresentException extends EntityAlreadyPresentException implements AlreadyPresent {
public class FacetAlreadyPresentException extends EntityAlreadyPresentException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAvailableInAnotherContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class FacetAvailableInAnotherContextException extends EntityAvailableInAnotherContextException implements AvailableInAnotherContext {
public class FacetAvailableInAnotherContextException extends EntityAvailableInAnotherContextException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,29 @@
/**
*
*/
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityCreationException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class FacetCreationException extends EntityCreationException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -3065194750535027873L;
public FacetCreationException(String message) {
super(message);
}
public FacetCreationException(Throwable cause) {
super(cause);
}
public FacetCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,6 +1,5 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException;
@ -8,7 +7,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.Entity
* @author Luca Frosini (ISTI - CNR)
*
*/
public class FacetNotFoundException extends EntityNotFoundException implements NotFound {
public class FacetNotFoundException extends EntityNotFoundException {
/**
* Generated Serial Version UID

View File

@ -1,6 +1,5 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAlreadyPresentException;
@ -8,7 +7,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.Entity
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ResourceAlreadyPresentException extends EntityAlreadyPresentException implements AlreadyPresent {
public class ResourceAlreadyPresentException extends EntityAlreadyPresentException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAvailableInAnotherContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ResourceAvailableInAnotherContextException extends EntityAvailableInAnotherContextException implements AvailableInAnotherContext {
public class ResourceAvailableInAnotherContextException extends EntityAvailableInAnotherContextException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,29 @@
/**
*
*/
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityCreationException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ResourceCreationException extends EntityCreationException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 363592815430310293L;
public ResourceCreationException(String message) {
super(message);
}
public ResourceCreationException(Throwable cause) {
super(cause);
}
public ResourceCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,6 +1,5 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException;
@ -8,7 +7,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.Entity
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ResourceNotFoundException extends EntityNotFoundException implements NotFound {
public class ResourceNotFoundException extends EntityNotFoundException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERAlreadyPresentException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class RelationAlreadyPresentException extends ERAlreadyPresentException implements AlreadyPresent {
public class RelationAlreadyPresentException extends ERAlreadyPresentException {
/**
* Generated Serial Version UID

View File

@ -1,13 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERAvailableInAnotherContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class RelationAvailableInAnotherContextException extends ERAvailableInAnotherContextException
implements AvailableInAnotherContext {
public class RelationAvailableInAnotherContextException extends ERAvailableInAnotherContextException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,27 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERCreationException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class RelationCreationException extends ERCreationException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 6390564714862731641L;
public RelationCreationException(String message) {
super(message);
}
public RelationCreationException(Throwable cause) {
super(cause);
}
public RelationCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class RelationNotFoundException extends ERNotFoundException implements NotFound {
public class RelationNotFoundException extends ERNotFoundException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationAlreadyPresentException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ConsistsOfAlreadyPresentException extends RelationAlreadyPresentException implements AlreadyPresent {
public class ConsistsOfAlreadyPresentException extends RelationAlreadyPresentException {
/**
* Generated Serial Version UID

View File

@ -1,13 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationAvailableInAnotherContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ConsistsOfAvailableInAnotherContextException extends RelationAvailableInAnotherContextException
implements AvailableInAnotherContext {
public class ConsistsOfAvailableInAnotherContextException extends RelationAvailableInAnotherContextException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,27 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationCreationException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ConsistsOfCreationException extends RelationCreationException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 5968496386603935430L;
public ConsistsOfCreationException(String message) {
super(message);
}
public ConsistsOfCreationException(Throwable cause) {
super(cause);
}
public ConsistsOfCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.consistsOf;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ConsistsOfNotFoundException extends RelationNotFoundException implements NotFound {
public class ConsistsOfNotFoundException extends RelationNotFoundException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,9 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isparentof;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationAlreadyPresentException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class IsParentOfAlreadyPresentException extends RelationAlreadyPresentException implements AlreadyPresent {
public class IsParentOfAlreadyPresentException extends IsParentOfException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,25 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isparentof;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class IsParentOfCreationException extends IsParentOfException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 3455142144592952399L;
public IsParentOfCreationException(String message) {
super(message);
}
public IsParentOfCreationException(Throwable cause) {
super(cause);
}
public IsParentOfCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -0,0 +1,23 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isparentof;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
public class IsParentOfException extends ResourceRegistryException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -202306809126357795L;
public IsParentOfException(String message) {
super(message);
}
public IsParentOfException(Throwable cause) {
super(cause);
}
public IsParentOfException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,12 +1,9 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isparentof;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class IsParentOfNotFoundException extends RelationNotFoundException implements NotFound {
public class IsParentOfNotFoundException extends IsParentOfException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationAlreadyPresentException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class IsRelatedToAlreadyPresentException extends RelationAlreadyPresentException implements AlreadyPresent {
public class IsRelatedToAlreadyPresentException extends RelationAlreadyPresentException {
/**
* Generated Serial Version UID

View File

@ -1,13 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationAvailableInAnotherContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class IsRelatedToAvailableInAnotherContextException extends RelationAvailableInAnotherContextException
implements AvailableInAnotherContext {
public class IsRelatedToAvailableInAnotherContextException extends RelationAvailableInAnotherContextException {
/**
* Generated Serial Version UID

View File

@ -0,0 +1,27 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationCreationException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class IsRelatedToCreationException extends RelationCreationException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -310747999683731578L;
public IsRelatedToCreationException(String message) {
super(message);
}
public IsRelatedToCreationException(Throwable cause) {
super(cause);
}
public IsRelatedToCreationException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,12 +1,11 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation.isrelatedto;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class IsRelatedToNotFoundException extends RelationNotFoundException implements NotFound {
public class IsRelatedToNotFoundException extends RelationNotFoundException {
/**
* Generated Serial Version UID

View File

@ -1,11 +1,9 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.schema;
import org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresent;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class SchemaAlreadyPresentException extends SchemaException implements AlreadyPresent {
public class SchemaAlreadyPresentException extends SchemaException {
/**
* Generated Serial Version UID

View File

@ -1,12 +1,10 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.schema;
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFound;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class SchemaNotFoundException extends SchemaException implements NotFound {
public class SchemaNotFoundException extends SchemaException {
/**
* Generated Serial Version UID

View File

@ -17,7 +17,7 @@ public class AccessPath {
public static final int UNBOUNDED = -1;
public static final int DEFAULT_LIMIT = 20;
public static final String FACET_PATH_PART = ERPath.FACET_PATH_PART;
public static final String FACETS_PATH_PART = ERPath.FACETS_PATH_PART;
public static final String RESOURCE_PATH_PART = ERPath.RESOURCE_PATH_PART;
public static final String EMBEDDED_PATH_PART = ERPath.EMBEDDED_PATH_PART;

View File

@ -14,7 +14,7 @@ public class ERPath {
protected static final String ENTITY_PATH_PART = "entity";
public static final String FACET_PATH_PART = "facet";
public static final String FACETS_PATH_PART = "facet";
public static final String RESOURCE_PATH_PART = "resource";
protected static final String RELATION_PATH_PART = "relation";

View File

@ -20,14 +20,14 @@ import org.gcube.informationsystem.model.ISManageable;
import org.gcube.informationsystem.model.entity.Facet;
import org.gcube.informationsystem.model.entity.Resource;
import org.gcube.informationsystem.model.relation.Relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ERNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ExceptionMapper;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationAvailableInAnotherContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException;
import org.slf4j.Logger;