Error handler that collects all errors into an array.
Error handler that handles all errors by throwing them.