Reorganizing exceptions. Fixed generated serial version uid where duplicated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@134999 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-11-28 16:15:07 +00:00
parent fcfde09ff6
commit 0906369c5d
14 changed files with 136 additions and 17 deletions

View File

@ -0,0 +1,12 @@
/**
*
*/
package org.gcube.informationsystem.resourceregistry.api.exceptions;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public interface ElementAlreadyPresent {
}

View File

@ -4,6 +4,6 @@ package org.gcube.informationsystem.resourceregistry.api.exceptions;
* @author Luca Frosini (ISTI - CNR)
*
*/
public interface ObjectNotFound {
public interface ElementNotFound {
}

View File

@ -9,7 +9,7 @@ public class ContextMoveException extends ContextException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 8119058749936021156L;
private static final long serialVersionUID = 3978134061057784201L;
public ContextMoveException(String message) {
super(message);

View File

@ -1,17 +1,17 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.context;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ObjectNotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ElementNotFound;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ContextNotFoundException extends ContextException implements ObjectNotFound {
public class ContextNotFoundException extends ContextException implements ElementNotFound {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 8119058749936021156L;
private static final long serialVersionUID = 3034336911176161784L;
public ContextNotFoundException(String message) {
super(message);

View File

@ -0,0 +1,20 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ElementAlreadyPresent;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class EntityAlreadyPresentException extends EntityException implements ElementAlreadyPresent {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 1129094888903457750L;
public EntityAlreadyPresentException(String message) {
super(message);
}
}

View File

@ -11,7 +11,7 @@ public class EntityException extends ResourceRegistryException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 8119058749936021156L;
private static final long serialVersionUID = -477995165028235952L;
public EntityException(String message) {
super(message);

View File

@ -0,0 +1,20 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ElementNotFound;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class EntityNotFoundException extends EntityException implements ElementNotFound {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -1687373446724146351L;
public EntityNotFoundException(String message) {
super(message);
}
}

View File

@ -1,17 +1,16 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ObjectNotFound;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class FacetNotFoundException extends EntityException implements ObjectNotFound {
public class FacetNotFoundException extends EntityNotFoundException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -1687373446724146351L;
private static final long serialVersionUID = 1665901586630603463L;
public FacetNotFoundException(String message) {
super(message);

View File

@ -1,18 +1,16 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.entity;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ObjectNotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class ResourceNotFoundException extends ContextException implements ObjectNotFound {
public class ResourceNotFoundException extends EntityNotFoundException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -1687373446724146351L;
private static final long serialVersionUID = 8635077520624797114L;
public ResourceNotFoundException(String message) {
super(message);

View File

@ -0,0 +1,20 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ElementAlreadyPresent;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class RelationAlreadyPresentException extends RelationException implements ElementAlreadyPresent {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -4331648416224535719L;
public RelationAlreadyPresentException(String message) {
super(message);
}
}

View File

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

View File

@ -0,0 +1,21 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.relation;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ElementNotFound;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class RelationNotFoundException extends RelationException implements ElementNotFound {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -5236597489824997797L;
public RelationNotFoundException(String message) {
super(message);
}
}

View File

@ -11,7 +11,7 @@ public class SchemaException extends ResourceRegistryException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = 8119058749936021156L;
private static final long serialVersionUID = 7661052329866006361L;
public SchemaException(String message) {
super(message);

View File

@ -1,17 +1,17 @@
package org.gcube.informationsystem.resourceregistry.api.exceptions.schema;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ObjectNotFound;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ElementNotFound;
/**
* @author Luca Frosini (ISTI - CNR)
*
*/
public class SchemaNotFoundException extends SchemaException implements ObjectNotFound {
public class SchemaNotFoundException extends SchemaException implements ElementNotFound {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -7068170595199626085L;
private static final long serialVersionUID = -1441446827386524456L;
public SchemaNotFoundException(String message) {
super(message);