expose the result from the exception so we can get out the index