You can have A = {1, 2, 3} and B = {2, 4, 6}. These are two sets.
When you return all the errors from each set from a function, it’s like creating the union of all of them, A ∪ B = {1, 2, 3, 4, 6}.
Of course you can also not return some errors from a function, but handle them yourself. So if for example you don’t return the value 2 and handle it in your function (or ignore the error because it should never be possible from your code’s logic; e.g. the functions says 2 can only happen if you pass in x, but you never pass in x), it’s like A ∪ B \ {2} = {1, 3, 4, 6}.