I need to throw a specific exception in the case if the multi stream doesn't return anything (empty / null in terms of multi stream result);
Here is my repository method:
return reactiveRepository.findAllById(idList);
which returns a
Multi<WhateverModel>
Is there a way for me to throw an exception if the above repository method doesn't return anything / null / empty stream?
I've tried filter, but it doesn't get invoked if the underlying repo method doesn't return a result.