Exception: OGR::DriverNotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ogr/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(driver, msg = nil) ⇒ DriverNotFound

Returns a new instance of DriverNotFound.



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/ogr/exceptions.rb', line 11

def initialize(driver, msg = nil)
  message =
    if msg
      msg
    elsif driver.is_a? String
      "Driver not found with name '#{driver}'."
    elsif driver.is_a? Integer
      "Driver at index #{driver} not found."
    end

  super(message)
end