Class ContextLifecycleException
- 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.ContextLifecycleException
-
- All Implemented Interfaces:
Serializable
public class ContextLifecycleException extends ContextException
Thrown when an operation violates Context lifecycle state machine transitions or tree hierarchy rules (e.g. renaming/reparenting a Context whose state isACTIVE). Mapped to409 Conflictby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextLifecycleException(String message)Instantiates a new context lifecycle exception.ContextLifecycleException(String message, Throwable cause)Instantiates a new context lifecycle exception.ContextLifecycleException(Throwable cause)Instantiates a new context lifecycle 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
-
ContextLifecycleException
public ContextLifecycleException(String message)
Instantiates a new context lifecycle exception.- Parameters:
message- the message
-
ContextLifecycleException
public ContextLifecycleException(Throwable cause)
Instantiates a new context lifecycle exception.- Parameters:
cause- the cause
-
-