Exception: OGR::DriverNotFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OGR::DriverNotFound
- Defined in:
- lib/ogr/exceptions.rb
Instance Method Summary collapse
-
#initialize(driver, msg = nil) ⇒ DriverNotFound
constructor
A new instance of DriverNotFound.
Constructor Details
#initialize(driver, msg = nil) ⇒ 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) = 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() end |