Exception: SeeAsVee::Exceptions::FileFormatError

Inherits:
SeeAsVeeError
  • Object
show all
Defined in:
lib/see_as_vee/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ FileFormatError

Returns a new instance of FileFormatError.



7
8
9
10
# File 'lib/see_as_vee/exceptions.rb', line 7

def initialize file
  file = file.path if file.is_a?(IO)
  super "File [#{file}] does not seem to be valid spreadsheet"
end