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, 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 Details

    • 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
    • SchemaViolationException

      public SchemaViolationException(String message, Throwable cause)
      Instantiates a new schema violation exception.
      Parameters:
      message - the message
      cause - the cause