Adds an exception to the list of tracked exceptions.
void addException(Object e) => _exceptions.add(e);