Skip to content

ERMrestJS Error Hierarchy

Amit Jha edited this page Dec 2, 2017 · 1 revision

ERMRESTJS

  • ERMrest Error : object
    • .ConflictError : All 409 type error
      • .IntegrityConflictError

        This subtype is defined to check following use case:

        409 Conflict The request conflicts with the state of the server. update or delete on table "experiment_type" violates foreign key constraint "dataset_experiment_type_experiment_type_fkey" on table "dataset_experiment_type" DETAIL: Key (term)=(Confocal microscope images) is still referenced from table "dataset_experiment_type".

        Checks : violates foreign key constraint.

        Returns : This entry cannot be deleted as it is still referenced from referenceTable table. All dependent entries must be removed before this item can be deleted.

      • .DuplicateConflictError

        This subtype is defined to check following use case:

        duplicate keys 'Error 409 Conflict The request conflicts with the state of the server. Input data violates model. ERROR: duplicate key value violates unique constraint "cpm_uri_key" ' custom constraint checking.

        Checks : violates unique constraint.

        Returns : The entry cannot be created/updated. Please use a different combination of keys for this record.