Check that the given value for binType is valid and throw error if it isn't.
Check that the given value for binType is valid and throw error if it isn't.