Change default for noChildrenAProcessingError in EntitiesDescriptorAssemblerStage
Basics
Logistics
Basics
Logistics
Description
At present, the default behaviour of EntitiesDescriptorAssemblerStage if presented with an empty collection of items is to shrug and move on, ignoring the condition except for a log.debug.
There is a property, noChildrenAProcessingError, to change the behaviour to throw a StageProcessingError in this case. This should be the default.
Note that the “shrug and move on” behaviour results in a (still) empty item collection, which seems useless as any reasonable use case will want to make use of the resulting (albeit schema-invalid) aggregate. However, that’s not easy to change because there’s no DOM implementation available which could be used for the createDocument call, and no parser or (text) document to parse to acquire one incidentally.
So, throwing in the case of an empty input collection is definitely the right default.
At present, the default behaviour of EntitiesDescriptorAssemblerStage if presented with an empty collection of items is to shrug and move on, ignoring the condition except for a log.debug.
There is a property,
noChildrenAProcessingError
, to change the behaviour to throw aStageProcessingError
in this case. This should be the default.