Closed CesarCoelho closed 7 years ago
Why not rethrowing the exception in the getElementCount?
I suspect there will be a lot of impact, but it seems better to inform the caller that the information was not computed. With such a change, the caller will continue its processing and probably fail later due to missing elements. Such situation can complexify the investigation on error, even if the logbook contains the relevant error.
Because that would mean changing the MAL Java API which is a little more involved.
But you could add a RID on the MAL Java to that effect
Done
Fixes this issue: https://github.com/esa/CCSDS_MO_TRANS/issues/12