Class ContextCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextCreationException
- All Implemented Interfaces:
Serializable
Thrown when a generic, non-conflict failure occurs while creating a Context (e.g.
an underlying persistence error). Mapped to
400 Bad Request by the REST
layer. Not currently thrown by the server implementation, which reports Context
creation failures via ContextException or ContextAlreadyPresentException.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextCreationException(String message) Instantiates a new context creation exception.ContextCreationException(String message, Throwable cause) Instantiates a new context creation exception.Instantiates a new context creation exception. -
Method Summary
Methods inherited from class org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResponseMetadata, withResponseMetadataMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContextCreationException
Instantiates a new context creation exception.- Parameters:
message- the message
-
ContextCreationException
Instantiates a new context creation exception.- Parameters:
cause- the cause
-
ContextCreationException
Instantiates a new context creation exception.- Parameters:
message- the messagecause- the cause
-