Added debug information to the exception.