Exception: GDAL::OpenFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ffi-gdal/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, msg = nil) ⇒ OpenFailure

Returns a new instance of OpenFailure.



3
4
5
6
# File 'lib/ffi-gdal/exceptions.rb', line 3

def initialize(file, msg=nil)
  message = msg || "Unabled to open file '#{file}'. Perhaps an unsupported file format?"
  super(message)
end