You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
CPS-1067
-
Getting issue details...
STATUS
Assumptions/Decisions
# | Issue | Notes/Jira | Decision |
---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
Implementation Proposal
Merge 2 'query' end points in one
# | Layer | Proposed Changes |
---|
1 | Cps service Layer | - Create a new CpsAdminNotFoundException class, child of CpsAdminException class
- Add CpsAdminNotFoundException as parent for all "NotFound" exceptions:
- AnchorNotFoundException
- DataNodeNotFoundException
- DataspaceNotFoundException
- ModuleNamesNotFoundException
- SchemaSetNotFoundException
|
2 | Controller Layer | - NetworkCmProxyRestExceptionHandler
- create a new @ExceptionHandler for the new CpsAdminNotFoundException
- return with 404 error code
|
3 | Test | - In Cps service Layer we have tests for this exceptions (CpsAdminPersistenceServiceSpec)
- Add new test to the REST handler tests (NetworkCmProxyRestExceptionHandlerSpec)
|