Class SchemaViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
- org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException
-
- All Implemented Interfaces:
Serializable
public class SchemaViolationException extends ResourceRegistryException
Thrown when a Type schema registration or update violates a structural schema rule: a referenced parent/facet/relation type does not exist, a cardinality constraint contradicts an inherited one,abstractandfinalare both set, a multiple-inheritance precedence order is inconsistent (C3 failure), or a Type is still referenced by another Type definition on delete. Mapped to409 Conflictby the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchemaViolationException(String message)Instantiates a new schema violation exception.SchemaViolationException(String message, Throwable cause)Instantiates a new schema violation exception.SchemaViolationException(Throwable cause)Instantiates a new schema violation 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
-
SchemaViolationException
public SchemaViolationException(String message)
Instantiates a new schema violation exception.- Parameters:
message- the message
-
SchemaViolationException
public SchemaViolationException(Throwable cause)
Instantiates a new schema violation exception.- Parameters:
cause- the cause
-
-