From 6290ea8be549307ea5c749f41c17bd528c858b10 Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Fri, 17 Nov 2017 09:59:51 +0000 Subject: [PATCH] Specialized Relation Exceptions git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@158593 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../IsParentOfAlreadyPresentException.java | 28 +++++++++++++++++++ .../IsParentOfNotFoundException.java | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfAlreadyPresentException.java create mode 100644 src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfNotFoundException.java diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfAlreadyPresentException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfAlreadyPresentException.java new file mode 100644 index 0000000..43a1cfc --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfAlreadyPresentException.java @@ -0,0 +1,28 @@ +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 { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = -244592605626665740L; + + public IsParentOfAlreadyPresentException(String message) { + super(message); + } + + public IsParentOfAlreadyPresentException(Throwable cause) { + super(cause); + } + + public IsParentOfAlreadyPresentException(String message, Throwable cause) { + super(message, cause); + } + +} diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfNotFoundException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfNotFoundException.java new file mode 100644 index 0000000..08c2b84 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/isparentof/IsParentOfNotFoundException.java @@ -0,0 +1,28 @@ +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 { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = -4769773168121537127L; + + public IsParentOfNotFoundException(String message) { + super(message); + } + + public IsParentOfNotFoundException(Throwable cause) { + super(cause); + } + + public IsParentOfNotFoundException(String message, Throwable cause) { + super(message, cause); + } + +}