These raise lines should be moved to where the `options` are actually set and you should use the `ArgumentError` exception class.