Class IsRelatedToAlreadyPresentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.RelationAlreadyPresentException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.isrelatedto.IsRelatedToAlreadyPresentException
-
- All Implemented Interfaces:
Serializable
public class IsRelatedToAlreadyPresentException extends RelationAlreadyPresentException
Thrown when an IsRelatedTo relation between the given source and target Resources already exists (subject to the polymorphic uniqueness invariant). Mapped to409 Conflictby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IsRelatedToAlreadyPresentException(String message)Instantiates a new checks if is related to already present exception.IsRelatedToAlreadyPresentException(String message, Throwable cause)Instantiates a new checks if is related to already present exception.IsRelatedToAlreadyPresentException(Throwable cause)Instantiates a new checks if is related to already present exception.
-
Method Summary
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResponseMetadata, withResponseMetadata
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IsRelatedToAlreadyPresentException
public IsRelatedToAlreadyPresentException(String message)
Instantiates a new checks if is related to already present exception.- Parameters:
message- the message
-
IsRelatedToAlreadyPresentException
public IsRelatedToAlreadyPresentException(Throwable cause)
Instantiates a new checks if is related to already present exception.- Parameters:
cause- the cause
-
-