kapua icon indicating copy to clipboard operation
kapua copied to clipboard

✨ [Core] Implemented StorableNotFoundException

Open Coduz opened this issue 1 year ago • 2 comments

This PR introduces a new StorableNotFoundException meant to be thrown when a Storable is not found. This exception is similar to KapuaEntityNotFountException, but for Storable classes.

Related Issue None

Description of the solution adopted

  • Introduced new StorableNotFoundException
  • Implemented new Storable.getType api
  • Implemented StorableNotFoundExceptionMapper to handle error in REST API

Screenshots None

Any side note on the changes made None

Coduz avatar May 22 '24 13:05 Coduz

Codecov Report

Attention: Patch coverage is 5.12821% with 37 lines in your changes missing coverage. Please review.

Project coverage is 16.67%. Comparing base (1835162) to head (c4e607c).

:exclamation: Current head c4e607c differs from pull request most recent head da423fb

Please upload reports for the commit da423fb to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff               @@
##             develop    #4042       +/-   ##
==============================================
+ Coverage           0   16.67%   +16.67%     
- Complexity         0       22       +22     
==============================================
  Files              0     2017     +2017     
  Lines              0    52221    +52221     
  Branches           0     4415     +4415     
==============================================
+ Hits               0     8707     +8707     
- Misses             0    43110    +43110     
- Partials           0      404      +404     
Files Coverage Δ
...service/storable/exception/StorableErrorCodes.java 100.00% <100.00%> (ø)
.../app/api/core/model/data/JsonDatastoreMessage.java 95.65% <0.00%> (ø)
...a/app/api/resources/v1/resources/DataChannels.java 0.00% <0.00%> (ø)
...ua/app/api/resources/v1/resources/DataClients.java 0.00% <0.00%> (ø)
...a/app/api/resources/v1/resources/DataMessages.java 0.00% <0.00%> (ø)
...ua/app/api/resources/v1/resources/DataMetrics.java 0.00% <0.00%> (ø)
...pse/kapua/service/datastore/model/ChannelInfo.java 0.00% <0.00%> (ø)
...ipse/kapua/service/datastore/model/ClientInfo.java 0.00% <0.00%> (ø)
...apua/service/datastore/model/DatastoreMessage.java 0.00% <0.00%> (ø)
...ipse/kapua/service/datastore/model/MetricInfo.java 0.00% <0.00%> (ø)
... and 5 more

... and 2002 files with indirect coverage changes

codecov[bot] avatar May 22 '24 14:05 codecov[bot]