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
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,
abstract and final are
both set, a multiple-inheritance precedence order is inconsistent (C3 failure),
or a Type is still referenced by another Type definition on delete. Mapped to
409 Conflict by the REST layer.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaViolationException(String message) Instantiates a new schema violation exception.SchemaViolationException(String message, Throwable cause) Instantiates a new schema violation exception.Instantiates a new schema violation exception. -
Method Summary
Methods inherited from class org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getResponseMetadata, withResponseMetadataMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SchemaViolationException
Instantiates a new schema violation exception.- Parameters:
message- the message
-
SchemaViolationException
Instantiates a new schema violation exception.- Parameters:
cause- the cause
-
SchemaViolationException
Instantiates a new schema violation exception.- Parameters:
message- the messagecause- the cause
-