Class RelationCreationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.CreationException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.RelationCreationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConsistsOfCreationException,IsRelatedToCreationException
public class RelationCreationException extends CreationException
Base exception for a generic, non-conflict failure to create a relation (ConsistsOf/IsRelatedTo). Mapped to400 Bad Requestby the REST layer. Not currently thrown by the server implementation, either directly or via itsConsistsOfCreationException/IsRelatedToCreationExceptionleaves.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RelationCreationException(String message)Instantiates a new relation creation exception.RelationCreationException(String message, Throwable cause)Instantiates a new relation creation exception.RelationCreationException(Throwable cause)Instantiates a new relation creation 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
-
RelationCreationException
public RelationCreationException(String message)
Instantiates a new relation creation exception.- Parameters:
message- the message
-
RelationCreationException
public RelationCreationException(Throwable cause)
Instantiates a new relation creation exception.- Parameters:
cause- the cause
-
-