Class ContextVisibilityException
- 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.ContextVisibilityException
-
- All Implemented Interfaces:
Serializable
public class ContextVisibilityException extends ContextException
Thrown when a Context exists in the system but falls outside the caller's authorized scope or visibility boundaries. Mapped to403 Forbiddenby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextVisibilityException(String message)Instantiates a new context visibility exception.ContextVisibilityException(String message, Throwable cause)Instantiates a new context visibility exception.ContextVisibilityException(Throwable cause)Instantiates a new context visibility 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
-
ContextVisibilityException
public ContextVisibilityException(String message)
Instantiates a new context visibility exception.- Parameters:
message- the message
-
ContextVisibilityException
public ContextVisibilityException(Throwable cause)
Instantiates a new context visibility exception.- Parameters:
cause- the cause
-
-