when getting the previous exception in the loop you need to use the previous variable not exc
when getting the previous exception in the loop you need to use the previous variable not exc

rollbar/rollbar-php,ArturMoczulski/rollbar-php