...
(see CCSDK-2871 DP: Long-term Java API(s)
- CPSValidationException
- CpsAdminException
- DataspaceNotFoundException
- SchemaSetNotFoundException
- SchemaSetAlreadyDefinedException
- ModelValidationException
- SpecificException1
- SpecificException2
- DataValidationException
- SpecificException3
- SpecificException4
- PathValidationException
- SpecificException5
- CpsAdminException
...
Vertical slice view of error scenarios
# | Use case | Scenario | DB (Spring) Response | SPI Response | Java API | REST API Response Code | Response Body | REST message | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Add schema set to dataspace | schema set with same name already exists | DataIntegrityViolationException | SchemaSetAlreadyDefinedException | DuplicateSchemaSetExceptionSchemaSetAlreadyDefinedException | 400 ( | extends ModelValidationExceptionbad request) | DuplicateSchemaSetException | TBD | TBDjson error object | schema set xyz already defined for dataspace abc | ||
2 | Add schema set to dataspace | dataspacename does not exist | depends on impl, I assume no records found | DatasspaceNotFoundException | DatasspaceNotFoundException | TBDNo records (Optional, not present) | DataspaceNotFoundException | DataspaceNotFoundException | 400 (bad request) | json error object | TBD | ||
3 | List anchors for dataspace name | dataspacename does not exist | depends on impl, I assume no records found | DatasspaceNotFoundException | DatasspaceNotFoundException | 204 ? | TBDNo records (Optional, not present) | DataspaceNotFoundException | DataspaceNotFoundException | 400 (bad request)* | json error object | dataspace xyz not found | |
4 | List anchors for dataspace name | no | anchoranchor records in DB | 0 records | empty collection | empty collection | 200 ? | TBD200 (ok) | empty list | N/A | |||
5 | |||||||||||||
6 | |||||||||||||
7 |
- simplicty, consitency, docuemnation