Exception: DerivativeRodeo::Errors::StorageLocationMissing

Inherits:
Error
  • Object
show all
Defined in:
lib/derivative_rodeo/errors.rb

Overview

Raised when a file uri is passed in that does not contain a storage adapter part before the ://

Instance Method Summary collapse

Constructor Details

#initialize(file_uri: '') ⇒ StorageLocationMissing

Returns a new instance of StorageLocationMissing.



14
15
16
# File 'lib/derivative_rodeo/errors.rb', line 14

def initialize(file_uri: '')
  super("#{file_uri} does not contain an adapter. Should look like file:///my_dir/myfile or s3://bucket_name/location/file_name. The part before the :// is used to select the storage adapter.") # rubocop:disable Layout/LineLength
end