Exception: GDAL::OpenFailure

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

Instance Method Summary collapse

Constructor Details

#initialize(file, msg = nil) ⇒ OpenFailure

Returns a new instance of OpenFailure.



14
15
16
17
# File 'lib/gdal/exceptions.rb', line 14

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