Class ConsistsOfAvailableInAnotherContextException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.AvailableInAnotherContextException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.RelationAvailableInAnotherContextException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.consistsof.ConsistsOfAvailableInAnotherContextException
-
- All Implemented Interfaces:
Serializable
public class ConsistsOfAvailableInAnotherContextException extends RelationAvailableInAnotherContextException
Thrown when the requested ConsistsOf relation exists, but only in a Context other than the one scoping the request. Mapped to403 Forbiddenby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsistsOfAvailableInAnotherContextException(String message)Instantiates a new consists of available in another context exception.ConsistsOfAvailableInAnotherContextException(String message, Throwable cause)Instantiates a new consists of available in another context exception.ConsistsOfAvailableInAnotherContextException(Throwable cause)Instantiates a new consists of available in another context 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
-
ConsistsOfAvailableInAnotherContextException
public ConsistsOfAvailableInAnotherContextException(String message)
Instantiates a new consists of available in another context exception.- Parameters:
message- the message
-
ConsistsOfAvailableInAnotherContextException
public ConsistsOfAvailableInAnotherContextException(Throwable cause)
Instantiates a new consists of available in another context exception.- Parameters:
cause- the cause
-
-