Set array data when exception is thrown