In the final callback, err
will be the first non-null error value passed in as the first parameter to the callback
calls in your waterfall
functions. So as long as you make the error values passed to callback
different for your three functions you can differentiate them.
However, you mention exceptions which don't figure into this at all as those will simply crash your program. I'm not sure if you meant actual exceptions or were just generally referring to errors as exceptions.