Helper function to get a value, or throw an exception if the value doesn't exist.
The index of the value to get.
The value.
See Implementation
Helper function to get a value, or throw an exception if the value doesn't exist.