Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(see CCSDK-2871 DP: Long-term Java API(s)

  • CPSValidationException
    • CpsAdminException
      • DataspaceNotFoundException
      • SchemaSetNotFoundException
      • SchemaSetAlreadyDefinedException
    • ModelValidationException
      • SpecificException1
      • SpecificException2
    • DataValidationException
      • SpecificException3
      • SpecificException4
    • PathValidationException
      • SpecificException5

...

Vertical slice view of error scenarios


DuplicateSchemaSetExceptionextends ModelValidationExceptionTBDTBDTBD anchor  TBD
#Use caseScenarioDB (Spring) Response SPI ResponseJava APIREST API Response CodeResponse BodyREST message
1Add schema set to dataspace

schema set with same name already exists

DataIntegrityViolationException

SchemaSetAlreadyDefinedException

SchemaSetAlreadyDefinedException400 (bad request)DuplicateSchemaSetExceptionTBDjson error objectschema set xyz already defined for dataspace abc
2Add schema set to dataspacedataspacename does not existdepends on impl, I assume no records foundDatasspaceNotFoundExceptionDatasspaceNotFoundExceptionNo records (Optional, not present)DataspaceNotFoundExceptionDataspaceNotFoundException400 (bad request)json error objectTBD
3List anchors for dataspace namedataspacename does not existdepends on impl, I assume no records foundDatasspaceNotFoundExceptionDatasspaceNotFoundException204 ?No records (Optional, not present)

DataspaceNotFoundException

DataspaceNotFoundException

400 (bad request)*

json error objectdataspace xyz not found
4List anchors for dataspace nameno anchor records in DB0 recordsempty collectionempty collection200 ? 200  (ok)

empty list


N/A
5








6








7








  • simplicty, consitency, docuemnation