Class ContextMoveException
- 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.ContextMoveException
-
- All Implemented Interfaces:
Serializable
public class ContextMoveException extends ContextException
Thrown when moving (reparenting) a Context fails for a reason other than the lifecycle state-machine checks covered byContextLifecycleException(e.g. a persistence error while recomputing descendantpath/effectiveState). Mapped to400 Bad Requestby the REST layer. Not currently thrown by the server implementation, which reports reparent failures viaContextLifecycleExceptionorContextException.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextMoveException(String message)Instantiates a new context move exception.ContextMoveException(String message, Throwable cause)Instantiates a new context move exception.ContextMoveException(Throwable cause)Instantiates a new context move 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
-
ContextMoveException
public ContextMoveException(String message)
Instantiates a new context move exception.- Parameters:
message- the message
-
ContextMoveException
public ContextMoveException(Throwable cause)
Instantiates a new context move exception.- Parameters:
cause- the cause
-
-